British Summer Time

7 replies [Last post]
garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011

Hi All,

Just wondered if it was at all possible to configure the HAH to take on BST time settings, I am currently running 1hour behind. I've had a quick look on google for a different NTP server but from what I can see, it looks like they are all set at UTC and local time is handled by the firmware, is this correct?.

Does anyone have a solution? I know it's not a big problem, would just make my scripts neater.

Many thanks,

Garry

brett
Offline
Providence, United States
Joined: 9 Jan 2010
how to set a timezone

The problem is uclib does not do the zoneinfo stuff that glibc does.  You can however work around this with the TZ environment variable.   http://www.linuxselfhelp.com/gnu/glibc/html_chapter/libc_21.html#SEC440

For example on your hah busybox command line if I did this I would get the right time.

# TZ="GMT0BST-1" date
Mon Apr 25 16:51:23 BST 2011
#

So what you need to do to make this permenant

# echo GMT0BST-1 >/etc/TZ
# reboot

For me as I'm on the EAST coast I use this

# echo EST5EDT4 >/etc/TZ

Brett

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Timezone sorted. Thanks

Thanks for the fast response.

Simple when you know how eh?!

 

Garry

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
time changes in web gui after use?!

Brett,

Sorry to pester but after making the changes you suggested for the time zone, the time was temporarily correct in the web gui, however, after using the gui a few times the time resorted back to UTC. typing date into telnet confirms os time is correct but web gui reporting different. A reboot resets the gui to BST, however use the web gui again and after a while the web gui goes back to displaying UTC?

not a big problem as the os time is correct just a bit odd that it is displayed correct at first then changes?

any ideas?

 

Garry

brett
Offline
Providence, United States
Joined: 9 Jan 2010
here is an idea

Make sure you web browser isn't dicking with you and showing you cached pages.

Check the behaviour using different browers  as I don't see the problem you have using Firefox 4 nor IE9, check your settings.

Brett

aivo
Offline
Tallinn, Estonia
Joined: 2 Mar 2011
See similar with /etc/TZ setting

Garry, Brett,

Wanted to share that I see similar, same with IE8, Firefox 4, Chrome.  I had this on test unit and not on live so did not pay too much attention until comment from Garry.

What is different on my test is .. no pw and login screen on Webserver.  Set pw + login screen on, save, reboot - time is correct!  Clear pw, remove login, save & reboot - time is UTC again.

Regards,

Aivo

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I manged to reproduce it too

I modified the code a little but whatever I did I it ended up reverting to UTC !

I thought it might have been the uClibc libraries so I tried upgrading them from 0.9.19 to 0.9.28 however in the process I toasted my livebox and I don't have time to reflash it back so I'm offline for a while now :(  Grrr

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Sorry

Thanks Brett, Its good you reproduced the issue but I'm a bit gutted that my little niggle has caused you to fry your livebox. hope you are up and running soon

 

Garry.

Hardware Info