[Poppler-bugs] [Bug 94173] return dates in UTC format

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 17 20:43:38 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94173

--- Comment #7 from Adrian Johnson <ajohnson at redneon.com> ---
Your code doesn't work. timegm() modifies the struct. Swap the utcmktime and
timegm around (or just make a copy of the struct) and it fails.

I suggest using the public domain ESR code that is known to work correctly. Add
a comment above the function saying
"Public domain code from
http://www.catb.org/esr/time-programming/#_mktime_3_timelocal_3_timegm_3"
so we know where it came from.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160217/d7d88ebe/attachment.html>


More information about the Poppler-bugs mailing list