From: schmidt_florian at f-24 dot com Operating system: Linux 2.6.7 (debuan unstable) PHP version: 4.3.8 PHP Bug Type: Date/time related Bug description: gmmktime does not return the corrent time
Description: ------------ i have seen many bugs concerning this problem, but the latest stable php versions (4 and 5) still dont work correct. echo gmdate("H,i,s, m,d,Y", gmmktime(02,00,01, 03,28,2004)); expected result: 02,00,01, 03,28,2004 result i got with v4.3.8 03,00,01, 03,28,2004 result i got with v5.0.1 03,00,01, 03,28,2004 so it is one hour off the wanted value. v4.3.8 on a Linux 2.6.7 with libc6 2.3.2.ds1-13 v5.0.1 on a Linux 2.6.7-gentoo-r11 with glibc 2.3.4.20040808 timezone: CEST+DST (GMT+0200) Reproduce code: --------------- echo gmdate("H,i,s, m,d,Y", gmmktime(02,00,01, 03,28,2004)); Expected result: ---------------- 02,00,01, 03,28,2004 Actual result: -------------- 03,00,01, 03,28,2004 -- Edit bug report at http://bugs.php.net/?id=30096&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30096&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30096&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30096&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30096&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30096&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30096&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30096&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30096&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30096&r=support Expected behavior: http://bugs.php.net/fix.php?id=30096&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30096&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30096&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30096&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30096&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30096&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30096&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30096&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30096&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30096&r=mysqlcfg