timezone behavior for date and hwclock

Brecht Ameije bam at abm.be
Wed Apr 18 09:14:19 UTC 2012


On Wed, Apr 18, 2012 at 11:06, Brecht Ameije <bam at abm.be> wrote:
> 
> If the rtc clock is kept in local time, there's no way to find out UTC time using
> only the hwclock command. Therefore I now choose to keep it in UTC time. The
> implications are: when using the hwclock  arguments -w and -s (set hwclock to
> systime and vice versa), the $TZ variable should be unset.
> 

OK, I forgot the obvious way Harald mentioned: instead of unsetting $TZ, you can just add the -u option:
$ hwclock -s -u
or
$ hwclock -w -u
That's what I needed all along.

> Thanks Denys (and Harald off list) for the explanation.
> Brecht
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox



More information about the busybox mailing list