#33682 : The function localtime() don't work as expected
From: v1d4l0k4 at gmail dot com
Operating system: Windows XP SP2
PHP version: 5.0.4
PHP Bug Type: Date/time related
Bug description: The function localtime() don't work as expected
Description:
------------
The function localtime() don't work as expected. In the manual says that
the key associative tm_year shows the year since 1900.
But, if year is higher than 2000, this key associative represents the year
- 1900, or either, a hundred and few.
Reproduce code:
---------------
<?
print_r(localtime());
?>
Expected result:
----------------
I expect that the key associative tm_year represents 2005, no 105.
--
Edit bug report at http://bugs.php.net/?id=33682&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33682&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33682&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33682&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33682&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33682&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33682&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33682&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33682&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33682&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33682&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33682&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33682&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33682&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33682&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33682&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33682&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33682&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33682&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33682&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33682&r=mysqlcfg
|