This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Daylight Savings Time Madness
- From: Henri Verbeet <hverbeet at gmail dot com>
- To: raspl at linux dot vnet dot ibm dot com
- Cc: libc-help at sourceware dot org
- Date: Thu, 9 Apr 2009 10:13:24 +0200
- Subject: Re: Daylight Savings Time Madness
- References: <49DB5703.3030507@linux.vnet.ibm.com>
2009/4/7 Stefan Raspl <raspl@linux.vnet.ibm.com>:
> void process(const char *str) {
> Âstruct tm tm, *p_tm;
> Âchar buf[255];
> Âtime_t t;
>
> Âprintf("starting out with  Â: %s\n", str);
> Âstrptime(str, "%Y-%m-%d %H:%M:%S", &tm);
This leaves tm.tm_isdst uninitialized. The sleep(1); probably just
changes what data is on the stack.