This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug time/17189] Incorrect result for %s in strftime
- From: "nmiell at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 20 Nov 2015 01:14:22 +0000
- Subject: [Bug time/17189] Incorrect result for %s in strftime
- Auto-submitted: auto-generated
- References: <bug-17189-131 at http dot sourceware dot org/bugzilla/>
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.