PDA

Bekijk de volledige versie : Daylight savings time (summer time)



Tellus1
30-03-2008, 10:29
Where is the setting to change device's time between summer time (DST) and "regular" time in WL500gP? I've noticed its time (including the time-zone designation) hasn't changed tonight.

wpte
30-03-2008, 17:14
you have the original firmware?
because olegs just switched to it automatically.
it says now: +0200
so it just auto adds 100 (1 hour)

anyway, this is the only config I know:
ip config -> Miscellaneous

ares952
31-03-2008, 07:03
A had same problem, set in IP config -> Miscellaneous manually your time zone, setting in nvram set time_zone=GMT-1 doe's not work for changing winter/summer time. I do not know why. No I have the time zone:
time_zone=MET-1METDST,M3.5.0/2,M10.5.0/3
and it works perfectly

Tellus1
31-03-2008, 18:43
I have Oleg's fw, version 1.9.2.7-9. And it does not switch automatically to DST - unless it switches on reboot (which I haven't done for a while, I admit :) ), which sounds so un-linux-ish. :rolleyes:

As for IP config -> Miscellaneous section: the only "time related" settings there are:
Time Zone
NTP Server
NTP synchronization interval (hours)
(under time zone, there are only "regular" timezones listed, no DST zones/settings).

al37919
31-03-2008, 20:07
I suggest to add the following lines to /usr/local/sbin/pre-boot:

#!/bin/sh

tz="MSK-3MSD,M3.5.0,M10.5.0/3"
nvram set time_zone="$tz"
echo "$tz" > /etc/TZ

This example is valid for Moscow time. You should replace it with the correct setting for you region. A short list I've seen e.g. here: http://forum.openwrt.org/viewtopic.php?pid=52627#p52627

There should be somewhere a long list available... The keyword to search is POSIX time or POSIX timezone.

Now it's a good time to search for the soultion of this annoying problem, because it will likely heal itself in a week or so.

Tellus1
06-04-2008, 11:28
Well... seems like it does switch to DST automatically, but not on the correct weekend.
I issued "date" command a few minutes ago and it now shows its time correctly:
Sun Apr 6 12:21:19 MESZ 2008

We'll see what happens in October/November then. :)