Req #52488 [NEW]: Date problem
| From: | pssubashps at gmail dot com | Date: | Thu, 29 Jul 2010 15:23:28 +0000 |
| Subject: | Req #52488 [NEW]: Date problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-152940@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.3
Package: Date/time related
Bug Type: Feature/Change Request
Bug description:Date problem
Description:
------------
Hai,
While i excuting the below script i got unexpected result.
<?php
print date("d-m-Y", mktime(0, 0, 0, 7, 1, 2038));
?>
i got the output is 01-01-1970.
i know the problem in php core.
php date funnction changelog:
The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54
GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond
to the minimum and maximum values for a 32-bit signed integer). However,
before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on
some systems (e.g. Windows).
how we resolve this problem.
--
Edit bug report at http://bugs.php.net/bug.php?id=52488&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52488&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52488&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52488&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52488&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52488&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52488&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52488&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52488&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52488&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52488&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52488&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52488&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52488&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52488&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52488&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52488&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52488&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52488&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52488&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52488&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52488&r=mysqlcfg