#22814 [Opn->Bgs]: strtotime error
| From: | mgf@php.net | Date: | Fri, 21 Mar 2003 15:41:37 +0000 |
| Subject: | #22814 [Opn->Bgs]: strtotime error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36111@lists.php.net to get a copy of this message | ||
ID: 22814
Updated by: mgf@php.net
Reported By: dizit at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP
PHP Version: 4.3.0
New Comment:
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.
.
Previous Comments:
------------------------------------------------------------------------
[2003-03-21 08:39:09] 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';
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22814&edit=1