I know there is a system date that you can put into storyline but what if a learner change his/her System Date/Time on his/her PC, I'll assume that it will also change the output. But if I can get the "Date" in SCORM, even if the learner change the Date/Time of his/her PC it will not affect the output. Is there any possible way to do this?
You're right, utilizing the system date is a feature that can be made available via JavaScript as you can see in this documentation.
I agree that it seems if the system date is changed, this would affect this feature. This is not a feature that I'm very savvy in though nor am I able to provide support.
Hopefully a fellow community member will be able to chime in and assist here.
Thank you Leslie for your response, I'm also hoping someone can help on this matter. I've been through the net but with no avail, I didn't get the answer that I'm looking for.
I haven't seen any way to get the current date/time from the LMS yet, but if you have a server where you can place a php file, then I think you can do this pretty easily. A javascript trigger in your course would fetch the php file from the server, which would supply the server's date/time to the javascript code.
I did see a trick where you pulled the date or time from your local google web page, not sure what the code is fort that(sorry). I cannot find the post either.
As javascript is a client side language you are going to need some help from a server script to do this.
Phil, I think you're right. I think I saw something once where someone pulled the date from a Google Sheet. As you said, either way you will need some kind of server-side help.
5 Replies
Hello Cyrille and welcome to E-Learning Heroes :)
You're right, utilizing the system date is a feature that can be made available via JavaScript as you can see in this documentation.
I agree that it seems if the system date is changed, this would affect this feature. This is not a feature that I'm very savvy in though nor am I able to provide support.
Hopefully a fellow community member will be able to chime in and assist here.
Thank you Leslie for your response, I'm also hoping someone can help on this matter. I've been through the net but with no avail, I didn't get the answer that I'm looking for.
I haven't seen any way to get the current date/time from the LMS yet, but if you have a server where you can place a php file, then I think you can do this pretty easily. A javascript trigger in your course would fetch the php file from the server, which would supply the server's date/time to the javascript code.
I did see a trick where you pulled the date or time from your local google web page, not sure what the code is fort that(sorry). I cannot find the post either.
As javascript is a client side language you are going to need some help from a server script to do this.
Phil, I think you're right. I think I saw something once where someone pulled the date from a Google Sheet. As you said, either way you will need some kind of server-side help.
This discussion is closed. You can start a new discussion or contact Articulate Support.