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

Reply via email to