From: ff at darkpenguin dot com dot br Operating system: OpenSuse 12.1 PHP version: 5.3.22 Package: Date/time related Bug Type: Bug Bug description:function date not returning correct value for short int
Description: ------------ --- >From manual page: http://www.php.net/function.date#refsect1-function.date-description --- Function date is not formatting time correctly when used with date_default_timezone_set and small integers. Test script: --------------- print date('H:i:s',24); // this should and do print 00:00:24, but when I do this: date_default_timezone_set('America/Sao_Paulo'); print date('H:i:s',24); // this prints 21:00:24 Expected result: ---------------- On the first "print date" I expect and get the result 00:00:24, on the second print I get 21:00:24 where I expected the same result before. -- Edit bug report at https://bugs.php.net/bug.php?id=64316&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64316&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64316&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64316&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64316&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64316&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64316&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64316&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64316&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64316&r=support Expected behavior: https://bugs.php.net/fix.php?id=64316&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64316&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64316&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64316&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64316&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64316&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64316&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64316&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64316&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64316&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64316&r=mysqlcfg
