On Tue, Oct 14, 2008 at 1:50 PM, Jeremy Chadwick <[EMAIL PROTECTED]> wrote:
> On Tue, Oct 14, 2008 at 12:43:54PM -0400, Mark B. wrote:
>> I can't figure out from the man pages why
>> mktime() is giving a different result than date -f.
>> Both strptime and mktime are supposed to use the
>> local timezone, as does date.
>> The output of date is correct; mktime() is an hour later.
>> What am I missing here?
> I'm betting it's due to DST

Yes, set tm_isdst to -1 before calling mktime() and then my
test program works as expected.


freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to