Author Topic: DST  (Read 2944 times)

0 Members and 1 Guest are viewing this topic.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
DST
« 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
« Last Edit: March 16, 2017, 05:12:30 PM by Jáchym »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: DST
« Reply #1 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).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: DST
« Reply #2 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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: DST
« Reply #3 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: DST
« Reply #4 on: March 16, 2017, 07:32:06 PM »
NP Ken :) I didnt even change it because the time will be correct again next weekend :)

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: DST
« Reply #5 on: March 16, 2017, 08:27:10 PM »
Death to DST!!!!  :)
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: DST
« Reply #6 on: March 16, 2017, 08:36:36 PM »
Death to DST!!!!  :)

300% agree (100% as a person + 200% as a developer) :D

Offline Scalphunter

  • Forecaster
  • *****
  • Posts: 2314
Re: DST
« Reply #7 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

Offline vreihen

  • El Nińo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: DST
« Reply #8 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.....
WU Gold Stars for everyone! :lol:

Offline droiddk

  • Forecaster
  • *****
  • Posts: 334
Re: DST
« Reply #9 on: March 17, 2017, 05:54:25 PM »

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: DST
« Reply #10 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.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: DST
« Reply #11 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

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: DST
« Reply #12 on: March 25, 2017, 05:44:40 PM »
Czech is changing tonight???
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: DST
« Reply #13 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...

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: DST
« Reply #14 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

Offline vreihen

  • El Nińo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: DST
« Reply #15 on: March 25, 2017, 06:10:31 PM »
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.....
WU Gold Stars for everyone! :lol:

Offline Scalphunter

  • Forecaster
  • *****
  • Posts: 2314
Re: DST
« Reply #16 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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: DST
« Reply #17 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





Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: DST
« Reply #18 on: March 25, 2017, 08:54:39 PM »
6.5 minutes and its 3AM :D