php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22814 strtotime error
Submitted: 2003-03-21 08:39 UTC Modified: 2003-08-16 00:56 UTC
Votes:6
Avg. Score:4.2 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (20.0%)
From: dizit at mail dot ru Assigned: hholzgra (profile)
Status: No Feedback Package: Date/time related
PHP Version: 4.3.0 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dizit at mail dot ru
New email:
PHP Version: OS:

 

 [2003-03-21 08:39 UTC] dizit at mail dot ru
<?
echo 'Dates 2003-03-29 and 2003-03-30 to timestamp:<br>'.strtotime('2003-03-29').'<br>'.strtotime('2003-03-30');

echo '<br>and then back with date function:<p>'.date('Ymd',strtotime('20030329')).'<br>'.date('Ymd',strtotime('20030330')).'<-There is an error. Must be 2003-03-30';
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-21 09:41 UTC] mgf@php.net
We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which do
not suffer from DST.

.
 [2003-03-21 13:24 UTC] hholzgra@php.net
well, in this special case the DST fault
is on the PHP side and not on the users 
side IMHO
 [2003-08-11 16:00 UTC] hholzgra@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

can't reproduce this on linux (4.3.2 and head) and XP (4.3.2),
guess it has been fixed somehow since 4.3.0 although i can't identify the exact change that fixed it ...

and regarding the "last sunday" comment -> this is ignored due to missing information, you neither told us the date you tried this (ok, we could guess that from the date you reported) nor did you tell us the expected and actual result -> bugus for that one ...
 [2003-08-16 00:56 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC