WXforum.net

Administration => WXForum Bugs/Suggestions => Topic started by: Jáchym on March 16, 2017, 05:10:57 PM

Title: DST
Post by: Jáchym on March 16, 2017, 05:10:57 PM
Hi Ken,
this is totally irrlevant, but I just thought I would mention it - the DST switch does not work correctly. Or rather it does, but it assumes we all switch at the same time :D Here in EU we are still in winter time and will be for further 10 days, the DST change is 3 weeks later, but the forum time for my TZ changed based on U.S. time :) which is actually strange because when I set the TZ in PHP for my place it uses correct time
Title: Re: DST
Post by: saratogaWX on March 16, 2017, 05:34:33 PM
The Forum's default time is America/New_York time which does observe USA Daylight time.  I use -3 for my America/Los_Angeles Pacific time in my profile. 

The Forum PHP software has no reliable way to determine the timezone of the viewer except to set a static offset (hours) from forum time in the displays (AFAIK).
Title: Re: DST
Post by: Jáchym on March 16, 2017, 06:21:20 PM
Yes I thought so, but it is strange because I thought PHP can handle this.

When I set the TZ in PHP to "Europe/Prague" it gives the correct time so it confused me because WXforum also uses PHP and probably the same way of setting timezone and offsets
Title: Re: DST
Post by: saratogaWX on March 16, 2017, 06:57:02 PM
Ahh, you can set the timezone on your PHP, but not on WXForum.net's PHP .. that is set to America/New_York and the SMF forum only allows a +/- hour offset (not a timezone name) to be used for displays.  I'm fairly certain the data is actually stored with a UTC timestamp, and the display routines add +/- hours to the date() display.

It would be sweeter if the forum allowed you to pick your timezone from a list, then it would always be in sync, but sadly, that's not the way SMF was written.
Title: Re: DST
Post by: Jáchym on March 16, 2017, 07:32:06 PM
NP Ken :) I didnt even change it because the time will be correct again next weekend :)
Title: Re: DST
Post by: Bushman on March 16, 2017, 08:27:10 PM
Death to DST!!!!  :)
Title: Re: DST
Post by: Jáchym on March 16, 2017, 08:36:36 PM
Death to DST!!!!  :)

300% agree (100% as a person + 200% as a developer) :D
Title: Re: DST
Post by: Scalphunter on March 16, 2017, 10:38:46 PM
Love DST as it gets me closer to our true  time  rather then polictal time as  our AST is refered to.

John
Title: Re: DST
Post by: vreihen on March 17, 2017, 06:17:04 AM
Isn't SMF open-source?  Ask them if they want your assistance in developing a TZ/i8n fix.....
Title: Re: DST
Post by: droiddk on March 17, 2017, 05:54:25 PM
Death to DST!!!!  :)

Agree!!

Regards
Title: Re: DST
Post by: miraculon on March 18, 2017, 08:53:57 AM
The 2007 DST change caused more disruption than Y2K did as far as I can tell. It kind of reminds me of this quote:

No man's life, liberty, or property are safe while the legislature is in session.

I have four "atomic" clocks that the geniuses that designed it have a hard-coded schedule, which is the pre-2007 one. I have to disable the "radio" in the spring and set DST off in the fall until the old dates come around. Why they just didn't follow the "DST bit" in the WWVB data baffles me....

Greg H.
Title: Re: DST
Post by: Jáchym on March 25, 2017, 04:47:05 PM
This is going to be a short night :D At least my WXForum time will get back to normal tonight :D
Title: Re: DST
Post by: Bushman on March 25, 2017, 05:44:40 PM
Czech is changing tonight???
Title: Re: DST
Post by: Jáchym on March 25, 2017, 05:52:12 PM
Europe is :D And same in fall, we are 3 weeks different from the U.S.

As I mentioned above, developer's nightmare... some countries change, some dont. Those that do, change at different times, which in addition differ each year :D Have fun programming this...
Title: Re: DST
Post by: Jáchym on March 25, 2017, 05:55:59 PM
Look :D

Examples:

Australia - First Sunday April
EU (vast majority) - last Sunday March
Canada - Second Sunday March
Japan - does not use DST
South Africa - no DST
U.S. - Second Sunday March

https://en.wikipedia.org/wiki/Daylight_saving_time_by_country

and it is of course also different when changing back to winter time
Title: Re: DST
Post by: vreihen on March 25, 2017, 06:10:31 PM
https://en.wikipedia.org/wiki/List_of_UTC_time_offsets (https://en.wikipedia.org/wiki/List_of_UTC_time_offsets)

If you think that this is fun to program, try writing the code to adjust UTC to local time...when places like Iran and North Korea aren't even operating on an hourly boundary.  This is the reason why the TZ offsets are usually specified in minutes.....
Title: Re: DST
Post by: Scalphunter on March 25, 2017, 06:15:07 PM
Also be hard to replace missing time zones. Alaska use to have 4 time zones now it has only two. Alaska  and Bering.

John
Title: Re: DST
Post by: PaulMy on March 25, 2017, 08:49:35 PM
And some provinces or states within countries don't change at all.  Canada has 5 1/2 time zones and one province that doesn't change, and I believe Queensland in AU the same.


Enjoy it,
Paul




Title: Re: DST
Post by: Jáchym on March 25, 2017, 08:54:39 PM
6.5 minutes and its 3AM :D