Automatic time change problem

walter harms WHarms at bfs.de
Wed Feb 27 11:36:04 UTC 2008



Frederic Kwiatkowski wrote:
> Hi all
> 
> I'm actually using busybox on an arm9 based device and I wondering something
> important about time-changes (ie adding 1hour at 30 March in France)
> When my device is running, automatic time switch occurs between
> summer/winter seasons. So everything goes right.
> But if the time change date occurs when the device is off, at startup, date
> is not set up correctly.
> 
> I was thinking that hwclock usually do this if I use it at startup (hwclock
> --utc?) but it doesn't work.
> 
> How this automatic time-change (between summer time and winter time) is
> managed at startup?
> 
> With kinds of regards
> 
> Frederic
> 

the easy way is tu run your device in GMT. And set the TZ for users.
To have the right time in beginning you need some good source. What is good
depends on your environment/requirements.
i see the following options:

1. good cmos clock - i hear it shall exists you may trust it
2. use rdate to get data from a nearby worksstation (LAN)
3. use ntpclient the get data from an ntpserver     (ANY)
4. use a full blown ntp-server and a local attached time device (ANY)

ntl, this is *not* a busybox related question

re,
 wh




More information about the busybox mailing list