On Tue, Oct 14, 2008 at 1:31 PM, Philip Guenther <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 10:04 AM, Mark B. <[EMAIL PROTECTED]> wrote: > ... >> My best guess is that mktime() expects tm_isdst but strptime() doesn't >> load it. But I don't know how to work around this. > > strptime() doesn't have enough information to set the tm_isdst member. >
If it had a format specifier for timezone, then I guess it could figure it out. But I don't see that format specifier in the strptime() manual. > > Sounds like you're expecting the behavior of tm_isdst < 0, so set it > to negative one before calling mktime. > Yes, that works just fine. I'll send my thanks to [EMAIL PROTECTED] :) m

