Using the clock instead of just a timerUsing the clock instead of just a timerhttps://portal.smartbuilder.com/c/message_boards/find_thread?p_l_id=&threadId=4560852024-03-29T05:06:37Z2024-03-29T05:06:37ZRE: Using the clock instead of just a timerRupert Picardohttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4590652021-01-01T10:43:55Z2021-01-01T10:43:55ZThat's awesome. Thanks again, guys. You really rockRupert Picardo2021-01-01T10:43:55ZRE: Using the clock instead of just a timerNavdeep Dhillonhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4579382020-12-21T21:04:03Z2020-12-21T21:01:46ZHi Rupert,<br />This is possible. You can use Javascript to get the UTC time. However, keep in mind that this is still using the operating system's clock - which means if the learner adjusts their computer's clock, they can get around it. To make it really work so that a learner could not access the course, you would have to have a server somewhere (something that the learner cannot change) that the lesson could talk to to confirm the actual time.<br /><br />If you're interested in using Javascript to get the UTC time, here's how to do that:<br />Video: <a href="https://share.smartbuilder.com/public/support/get-UTC-time-make-course-available.mp4">https://share.smartbuilder.com/public/support/get-UTC-time-make-course-available.mp4</a><br />Sample lesson: <a href="https://share.smartbuilder.com/public/support/get-UTC-time-make-course-available.sb4">https://share.smartbuilder.com/public/support/get-UTC-time-make-course-available.sb4</a><br /><br />Hope that helps!Navdeep Dhillon2020-12-21T21:01:46ZRE: Using the clock instead of just a timerRupert Picardohttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4576402020-12-19T06:52:52Z2020-12-19T06:52:52Z<span style="color: #333333"></span>As a follow up to this question - is there a way of linking the time to say GMT or any international standard time?<br />Rather than a system time, I’d like to actually have say a lesson that is only active from say, 5:00pm GMT till 6:00pm GMT - irrespective of where you are in the world.<br /><br />Any inputs on how I can achieve that?Rupert Picardo2020-12-19T06:52:52ZRE: Using the clock instead of just a timerScott Sheridanhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4563062020-12-10T19:46:17Z2020-12-10T19:46:17ZAhhh! Got it. <br />Thanks! Scott Sheridan2020-12-10T19:46:17ZRE: Using the clock instead of just a timerRob Pennhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4562832020-12-10T19:35:45Z2020-12-10T19:33:33ZHi Scott,<br /><br />The format you're using for the registered function is "MM/DD/YYY:hh:mm:ss" but you then compare that to "13:52 on 10-12-2020" which is "hh:mm on mm-dd-yyy" format, so this comparison will never be true. To make it work, change the first parameter in the registered function to "hh:mm on mm-dd-yyyy". Rob Penn2020-12-10T19:33:33ZRE: Using the clock instead of just a timerScott Sheridanhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4562592020-12-10T18:58:08Z2020-12-10T18:58:08ZThis is pretty cool, Rob. I just tried it out but am not able to get it to work, though. <br />Do I have it set up correctly? Scott Sheridan2020-12-10T18:58:08ZRE: Using the clock instead of just a timerRob Pennhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4561972020-12-10T17:30:46Z2020-12-10T17:30:20ZHi Rupert,<br /><br />Yes, this is possible to do using one of SmartBuilder's Advanced > Procedure blocks. Here's how: <a href="https://www.screencast.com/t/7Ss3Fl0e">https://www.screencast.com/t/7Ss3Fl0e</a><br /><br />RobRob Penn2020-12-10T17:30:20ZUsing the clock instead of just a timerRupert Picardohttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4560842020-12-10T13:03:17Z2020-12-10T13:03:17Z<span style="color: #333333"></span>Is there a possibility of linking a lesson to the actual time / clock rather than just the timer? I'd like to have to have the lesson or a trigger start at a pre-determined time and correspondingly, end at a certain time based on real world time.Rupert Picardo2020-12-10T13:03:17Z