From: bvb dot bolle at gmail dot com Operating system: Windows, Linux PHP version: 5.4.10 Package: Date/time related Bug Type: Bug Bug description:Date function calculation error
Description: ------------ Just try this: <?php echo date("Y-m-d", 2912194800); echo ' '.phpversion(); ?> it should indicate: Thursday, April 13th 2062, 23:00:00 (GMT) but... [System] [Date Calculated] [PHP Version] Local Windows Vista 1926-03-08 5.4.0-ZS5.6.0 Server01 (WinServ2012) 1926-03-08 5.4.9-Win64 Server02 (Debian) 2062-04-14 5.3.20 Server03 (Ubuntu) 1926-03-08 5.3.10-1ubuntu3.4 Server04 (WinServ2008R2) 1926-03-08 5.4.9-Win64 Test script: --------------- <?php echo date("Y-m-d", 2912194800); echo ' '.phpversion(); ?> Expected result: ---------------- 2062-04-14 Actual result: -------------- 1926-03-08 -- Edit bug report at https://bugs.php.net/bug.php?id=63967&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63967&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63967&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63967&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63967&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63967&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63967&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63967&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63967&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63967&r=support Expected behavior: https://bugs.php.net/fix.php?id=63967&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63967&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63967&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63967&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63967&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63967&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63967&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63967&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63967&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63967&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63967&r=mysqlcfg