<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - return dates in UTC format"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94173#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - return dates in UTC format"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94173">bug 94173</a>
from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
<pre>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
<a href="http://www.catb.org/esr/time-programming/#_mktime_3_timelocal_3_timegm_3">http://www.catb.org/esr/time-programming/#_mktime_3_timelocal_3_timegm_3</a>"
so we know where it came from.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>