Author Topic: DST  (Read 293 times)

0 Members and 1 Guest are viewing this topic.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 7261
    • 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: 5812
  • 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, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 7261
    • 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: 5812
  • 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, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 7261
    • 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: 6311
    • Eagle Bay Weather
Re: DST
« Reply #5 on: March 16, 2017, 08:27:10 PM »
Death to DST!!!!  :)

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 7261
    • 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: 2312
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: 607
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.....

Offline droiddk

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

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 2701
  • 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 668, 706 - CWOP CW4114 -  CoCoRaHS MI-PI-1

 

anything