#48306 [NEW]: Wrong date for big U digit
From: jhoseinii at gmail dot com
Operating system: Linux Fedora Centos 5.x
PHP version: 5.2.9
PHP Bug Type: Date/time related
Bug description: Wrong date for big U digit
Description:
------------
Hi,
I tried to use date for convert U (seconds passed from 1970.1.1 up to
about 2030, but it returned some unsuitable result
check this sample:
$U = 2191928815;
echo gmdate('Y.m.d H:i:s', $U); // 1903.05.12 06:38:39
Reproduce code:
---------------
non
Expected result:
----------------
non
Actual result:
--------------
non
--
Edit bug report at http://bugs.php.net/?id=48306&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48306&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48306&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48306&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48306&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48306&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48306&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48306&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48306&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48306&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48306&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48306&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48306&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48306&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48306&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48306&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48306&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48306&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48306&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48306&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48306&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48306&r=mysqlcfg
Thread (3 messages)
- jhoseinii at gmail dot com