OpenWrt Forum Archive

Topic: Timezone in Kamikaze

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Does anybody know how to set uo timezome in Kamikaze?

I have already tried 'echo "MSK-3MSD,M3.5.0/2,M10.5.0/3" >/etc/TZ'

but 'date' still shows UTC time...

blackcat.

root@OpenWrt:~# date
Thu Feb 15 04:53:33 UTC 2007

root@OpenWrt:~# export TZ="MSK-3MSD,M3.5.0/2,M10.5.0/3"

root@OpenWrt:~# date
Thu Feb 15 07:55:21 MSK 2007

hello

I live in Portugal and we have the summer time which is UTC+1.

In the winter we have UTC.

I installed ntpclient and edited the file at /etc/config/ntpclient with the following:

config ntpclient
    option hostname 'ntp02.oal.ul.pt'
    option port     '123'
    option count    '1'

config ntpclient
        option hostname 'ntp04.oal.ul.pt'
        option port     '123'
        option count    '1'

what else do I need to change?

when I issue the command date it displays the following:
Sat Jul 19 17:46:05 UTC 2008

which is one hour less than the actual time (summer).

can someone help me fix this?

and how do I change the router timezone?

For latest trunk:

Configure the timezone option in /etc/config/system and install the ntpclient package. The NTP servers can be changed in /etc/config/ntpclient file after installing the ntpclient package. Then reconnect WAN (ifdown wan; ifup wan), simulate the WAN reconnect (env -i ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface) or just reboot to sync the time.

The discussion might have continued from here.