Page 1 of 1

Info Block & End of Daylight Saving Time

Posted: Mon Nov 06, 2017 12:08 pm
by MonyMony
Noticed that the info block is reporting my station was offline but actually this is when Daylight Saving Time ended. Very minor issue and personally I don't need any action taken on this but just wanted to make the behavior known.
Screen Shot 2017-11-06 at 6.59.14 AM.png
Screen Shot 2017-11-06 at 6.59.14 AM.png (33.73 KiB) Viewed 6072 times
The attachment Screen Shot 2017-11-06 at 6.59.14 AM.png is no longer available

Re: Info Block & End of Daylight Saving Time

Posted: Mon Nov 06, 2017 6:33 pm
by dmgould
I noticed that as well on both of my sites. There would have been duplicate data attempting to be written for a one hour period when the time changed back an hour.

Re: Info Block & End of Daylight Saving Time

Posted: Mon Nov 06, 2017 6:41 pm
by Jachym
This is unsolvable. I would have to stick with winter time in the template to get this right and people would complain because it would not really correspond to real time. Here at our institute we use UTC for this reason, but that also wouldnt be welcomed...

So what happens is that once per yr, one hour is missing in the db, and once per year one hour is overwritten (so in a sense also missing)

Re: Info Block & End of Daylight Saving Time

Posted: Tue Nov 07, 2017 1:40 am
by MonyMony
Jachym wrote: Mon Nov 06, 2017 6:41 pm This is unsolvable.
What! I thought you were the 'miracle worker'. :D

I will say storing data in the local time is much preferred versus UTC which can cause its own confusion (Now to I subtract four hours or five??). Interesting in my screenshot that the data is not actually overwritten as you mention as I end up with two entries for an hour. I am fine with this behavior and just wanted point out this quirk the end of Daylight Saving Time.

Re: Info Block & End of Daylight Saving Time

Posted: Tue Nov 07, 2017 10:35 pm
by wx_jon
Jachym wrote: Mon Nov 06, 2017 6:41 pm Here at our institute we use UTC for this reason, but that also wouldnt be welcomed...
I would definitely welcome UTC time! All it needs is some time zone conversions and everything would work. Except perhaps daily rain. That's why weeWX, for example, only saves rain in a time period, then calculates sums for the daily values.

Re: Info Block & End of Daylight Saving Time

Posted: Tue Nov 07, 2017 11:08 pm
by Jachym
Yes, but I think you are a very rare exception, 99% of users want local time...