[BusyBox] problems setting date with daylight savings time

Manuel Novoa III mjn3 at codepoet.org
Thu Oct 2 21:58:22 UTC 2003


Hello,

On Thu, Oct 02, 2003 at 02:42:10PM -0700, Alex K wrote:
> we're using BusyBox v0.60.5 (2003.02.17-20:35+0000)

In the future, you might want to compare against the devel version.

> when I set the date and the new date is in a day that is in a
> different daylight savings mode then my current one the date set if
> off by an hour - is this a known problem? the workaround right now
> appears to be just to set the date twice and it works just fine.

The date applet was not setting tm_isdst to -1 prior to calling mktime.
I fixed this in cvs over 2 months ago.  See
http://busybox.net/cgi-bin/cvsweb/busybox/coreutils/date.c.diff?r1=1.40&r2=1.41

Manuel



More information about the busybox mailing list