php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40346 Date Time Limitations
Submitted: 2007-02-03 22:53 UTC Modified: 2007-02-11 01:00 UTC
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:2 (40.0%)
From: jtantillo at glaserinc dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 5.2.0 OS: Win XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-02-03 22:53 UTC] jtantillo at glaserinc dot com
Description:
------------
I'm sure you are already aware of the int limitations on the Date Time Stamp. I also read that there was a 64bit timestamp ready, but not activated/available. 

When is that going to be activated?

And what are the new limitations as far as Date/Time going to
be with that?

Thanks. 

Expected result:
----------------
Expected Calendar app to go past 1-19-2037 and back further than 12-1901

Actual result:
--------------
It didn't

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-03 22:55 UTC] jtantillo at glsaerinc dot com
.
 [2007-02-03 22:56 UTC] jtantillo at glaserinc dot com
.
 [2007-02-03 23:01 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2007-02-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-08-24 20:47 UTC] dragonmoon01 at hotmail dot com
I have this same problem in php 5.2.10. Here is the chunk of code that I used.

Last Checked: <input disabled type="text" name="txt" value="<?echo "".date("m-d-Y",strtotime($datech));?>" maxlength= "10" size="10">

When there is a date stored in the database that has a year that is higher than 2037 this code displays 12-31-1969 as the date. Even though the database has a different date, such as having the year 3000. I do realize that the year 3000 is a few years away, but the issue will be a very large problem in say: 2038

I hope this information is helpful. If you need any more information please ask.

Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC