This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug time/17189] Incorrect result for %s in strftime


https://sourceware.org/bugzilla/show_bug.cgi?id=17189

--- Comment #3 from Nicholas Miell <nmiell at gmail dot com> ---
Again, from the manual:

Calling 'strftime' also sets the current time zone as if 'tzset'
were called; 'strftime' uses this information instead of
BROKENTIME's 'tm_gmtoff' and 'tm_zone' members.

This means that strftime() always treats the supplied struct tm as if it were
in the local time zone; this includes the conversion to UTC.

If you supply a struct tm to strftime() that isn't in the local time zone,
naturally the conversion from the local time zone to UTC will be wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]