I do not understand why you have entered??
stopTime = T09:04
startTime = T09:00
the vars just need to be two digit numbers which represent hours.
stopTime = 08
startTime = 09
you do not use them when testing.
var nowTime = new Date( ).getHours //–0 to 23, representing the hour
new Date( )
Will get the current date registered on the client computer…
.getHours part will parse the hours of that date
If you want to set a specific date either in the published page or just for testing then you need to set a date /time.
This sort of date code and time allows you to do tests without waiting. When testing you only need to change the components of the date/time code that you are bothered about.
i.e the hours.
before I go further.
Run this and post back here the date you get back
localTime.hype.zip (16.8 KB)