Red Hat Bugzilla – Bug 8472
Incorrect computation of GMT time
Last modified: 2008-05-01 11:37:53 EDT
As installed, RH 6.1, php3, and apache-1.3.9 (and/or SWS 3.1) yield
incorrect values when calling gmmktime, e.g. calling gmmktime and mktime
yield the same (local) time values:
<P><? echo gmmktime(0,0,0,1,1,2000) ?></P>
<P><? echo mktime(0,0,0,1,1,2000) ?></P>
when the two should differ by 5 hours (86400 secs) (in my case). Not sure
if this is a configuration problem elsewhere. I could find no TZ config
info in php.ini.
Perl gmtime() yields the expected values.
for php 3.0.14 that will ship with 6.2, these are the results:
on my system, which is correct. This poblem appears to be corrected.