#634007 libc6: strftime %s wrong result when struct tm is from gmtime_r() and timezone is non UTC

Package:
libc6
Source:
glibc
Description:
GNU C Library: Shared libraries
Submitter:
Robert Paciorek
Date:
2011-07-15 22:27:05 UTC
Severity:
normal
#634007#5
Date:
2011-07-15 22:22:59 UTC
From:
To:
Hi,

When use time from gmtime_r() and strftime() in local (non UTC) timezone strftime
is able to recognize timezone (UTC) of time in tm, but %s ("the number of seconds
since the Epoch") is wrong (as though tm was in the local timezone).

Best regards,
Robert Paciorek
http://www.opcode.eu.org/bercik