[uClibc] mktime returns -1

Brad Kemp bkemp at ucentric.com
Thu Jun 9 12:18:17 UTC 2005

What we found was that strptime was putting junk in the tm-sec, tm_wday
and tm_yday fields of the struct tm.
resetting these to 0 after the call to strptime seemed to fix our problem.
Ming-Ching Tiew wrote:
> From: "Ming-Ching Tiew" <mingching.tiew at redtone.com>
>>My further investigation revealed that the problem is with strptime()
>>and not mktime(). Maybe certain flags not implemented.
> Sorry to post so frequent. It seems the %I is not supported. I changed it
> to %H, the problem is fixed. Thank you for your attention.
> Cheers.
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc

More information about the uClibc mailing list