From: martin at marquesminen dot com dot ar Operating system: Linux PHP version: 5.2.5 PHP Bug Type: Date/time related Bug description: When changing system tzdata, PHP keeps using the old timezone
Description: ------------ I got an update from tzdata on a Debian server due to a daylight saving change here in Argentina (same thing happens on a Fedora 7 server). The problem is that, even when the system sees the correct time, php keeps giving me the *old* hour (CLI and mod_apache). Reproduce code: --------------- $ date miƩ feb 6 09:03:57 ARST 2008 $ echo "<?php echo date('H:i') . \"\n\"; ?>"|php 08:04 $ date +%z -0200 $ echo "<?php echo date('Z')/3600 . \"\n\"; ?>"|php -3 -- Edit bug report at http://bugs.php.net/?id=44061&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44061&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44061&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44061&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44061&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44061&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44061&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44061&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44061&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44061&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44061&r=support Expected behavior: http://bugs.php.net/fix.php?id=44061&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44061&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44061&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44061&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44061&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44061&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44061&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44061&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44061&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44061&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44061&r=mysqlcfg