OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Wrong Time after DST Change
- This topic has 58 replies, 6 voices, and was last updated 9 years, 10 months ago by Ray.
-
AuthorPosts
-
November 2, 2014 at 9:48 am #34361
sgrubyParticipantThis morning I went to check on my sprinklers (hardware 2.1 with a newly upgraded 2.1.0 firmware) and the clock says it is 1 hour before it should be. I have the location set correctly and NTP sync, but can’t get the time correct in the UI. The time on the LCD is correct, but in the web UI it is wrong.
Any suggestions on how to fix this or is it a firmware bug?
BTW thanks for the firmware update, especially being able to name programs!
November 2, 2014 at 9:57 am #34362
RayKeymasterSorry, deleting my previous post — just re-read your message, you said the LCD displays the correct time, that means the firmware is working fine. It’s potentially a UI issue. Can you refresh the webpage, or if using app, quit the app and restart it and see if it gets the correct time?
November 2, 2014 at 10:02 am #34364
sgrubyParticipantHi Ray,
I’ve rebooted a few times already. The LCD shows the correct time; the UI shows 1 hour before the correct time. When I rebooted and looked at the options, the time zone was set correctly to -0800 (it was -0700 yesterday).
The UI is definitely confused because I have my sprinklers come on at 7 am and they just came on (7 am), but UI says 6 am. I double checked the programs and they all start at 7 am.
Attachments:
November 2, 2014 at 10:10 am #34368
vinnyParticipantI am seeing the same issues.
November 2, 2014 at 10:13 am #34369
RayKeymasterI wonder if this might be a browser cache issue. Can you try a different browser, or on a different computer and see if it makes any difference?
As something interesting I just learned yesterady: within the US, Hawaii and Arizona actually don’t observe DST — but Arizona is more complicated, because there are regions in Arizona that do observe DST: http://phoenix.about.com/cs/weather/qt/timezone.htm. I don’t know why DST is still a thing, in my opinion we should stop using DST 🙂
November 2, 2014 at 10:15 am #34370
sgrubyParticipantBingo! I switched to Chrome (from Safari) and it shows the correct time. Thanks for the quick response.
I agree completely with DST being a pain; I wrote sync software for Palm OS devices back in the day and calendaring was a royal pain. It got a little better when the DST info was included in the calendar entries, but when the DST rules changed, it was a nightmare.
November 2, 2014 at 10:20 am #34371
vinnyParticipantworked for me too.
November 2, 2014 at 10:24 am #34372
sgrubyParticipantOddly enough, this might be a Safari/WebKit issue. I cleared cache/cookies/etc. in Safari and the time is wrong. I also used the OpenSprinkler app on the Mac with the same wrong time. I tried with 2 iPhones and an iPad; all had the wrong time. I tried another Mac that had never hit the website and had the wrong time. So I wonder if it is a Safari issue. Thoughts?
November 2, 2014 at 10:33 am #34373
vinnyParticipantI think that this is a Safari (Javascript core issue). there are some posts on the net about the javascript engine (on the mac) not handling dst properly.
my router webpage has the same issue in safari, but not in chrome. both chrome and safari use webkit, but the difference is that google did there own javascript interpreter (I am not 100% sure but i think that is the issue)
November 2, 2014 at 10:46 am #34374
RayKeymasterThe UI is supposed to use the device time (i.e. what the firmware reports) and should not be using the browser or computer’s time, for the simple reason that if you are accessing OpenSprinkler remotely from a different time zone the UI should still show OpenSprinkler’s time.
@sgruby: I tried Safari on OSX and iPad, both showing the time correctly. So unfortunately I can’t reproduce the issue…November 2, 2014 at 10:50 am #34375
sgrubyParticipantAnything you can suggest to help troubleshoot this? I haven’t put in a MicroSD card for logging, yet, but will do that today.
Thanks!
November 2, 2014 at 11:34 am #34376
RayKeymasterFor the moment can you use Chrome? Also, if you can report your Safari’s version and your OSX version, that can help us reproduce the issue.
I am working with Samer to figure out the issue, it seems to have to do with Javascript engine as vinny suggested.
November 2, 2014 at 11:35 am #34377
sgrubyParticipantNot a problem at all; I can also just remember that the time is off 🙂
November 2, 2014 at 11:37 am #34379
RayKeymasterIn the meantime, this is a very entertaining video to watch:
https://www.youtube.com/watch?v=84aWtseb2-4
can’t help laughing towards the end.
November 2, 2014 at 1:18 pm #34381
sgrubyParticipantSo odd; I just pulled my unit off the wall, put in a MicroSD card, put it all back and now the correct time is showing on all my devices and in Safari. Strange.
In any case, thanks for the quick response and the video!
November 2, 2014 at 5:32 pm #34390
vinnyParticipantI just checked mine again too. and everything looks good.
Bet it was some sort of caching bug, and the cache has cleared.
November 6, 2014 at 12:30 am #34435
automateParticipantMy LCD, computer (Chrome), and IPhone shows an hour later than local time.
I am using NTP sync. I can set it manually and it shows correct on all devices, but put it back to NTP and it is off 1 hour. I am in California, the whole state is DST.
November 6, 2014 at 9:20 pm #34460
RayKeymasterThis year’s DST has ended on Nov 2. Are you sure you are looking at the correct time?
November 6, 2014 at 10:52 pm #34465
automateParticipantin current status, at the top of the screen is reads “Thr, 06 Nov 2014 20:49:06”. The time on the computer and all the clocks in the house read 7:49. What am I missing?
November 6, 2014 at 11:58 pm #34466
RayKeymasterWhat’s your location? I tried several cities that I can think of in California and they all returned the correct time.
November 7, 2014 at 12:12 am #34468
automateParticipantSan Bernardino, 92410
Is there a place to turn DST on / off?
November 7, 2014 at 2:32 am #34470
automateParticipantI have tried Sacramento, Redding, los Angeles, They all return 1 hour AHEAD of local time. What can be wrong with my system?
My local time is 10:00, Open Sprinkler says it is 23:00
November 7, 2014 at 10:30 am #34477
RayKeymasterTo make sure I understand the issue: are you using Firmware 2.1.0? Auto-DST detection is only made available in Firmware 2.1.0. If you have earlier firmware versions, you will need to manually change the time zone to adjust the time. To check firmware version, in the web UI, click on the icon at the upper-left corner to bring out the sidebar, then click on About. It will show you the firmware version.
November 7, 2014 at 10:49 am #34485
automateParticipantNovember 7, 2014 at 1:30 pm #34491
RayKeymasterYou said your location is ‘San Bernardino, 92410’, is this the exact string you put in to your location input box? I don’t think this is a location recognizable by the firmware, it should be either:
San Bernardino, CA
or
92410
I tried 92410 and it works on my OpenSprinkler. -
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Wrong Time after DST Change