#16429 [Com]: strtotime fails when crossing Daylight Saving Time
| From: | msopacua at idg dot nl | Date: | Mon, 19 Aug 2002 19:15:55 +0000 |
| Subject: | #16429 [Com]: strtotime fails when crossing Daylight Saving Time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17225@lists.php.net to get a copy of this message | ||
ID: 16429
Comment by: msopacua@idg.nl
Reported By: sveinp@basefarm.no
Status: Bogus
Bug Type: Date/time related
Operating System: Solaris/Linux
PHP Version: 4.3.0-dev
New Comment:
Please reset to open.
If this was to be closed it, would be 'close' and not 'bogus', as Jani
already confirmed it.
Today's checkout, HEAD and STABLE:
mdev@server21 ~/cvs/php4
$ sapi/cli/php -q
<?php
$today = mktime(9, 28, 0, 4, 4, 2002);
print date("r", $today) . "\n";
print date("r", strtotime("last saturday", $today)) . "\n";
?>
Thu, 4 Apr 2002 09:28:00 +0200
Fri, 29 Mar 2002 23:00:00 +0100
mdev@server21 ~/cvs/php-4.2.3
$ sapi/cli/php -q
<?php
$today = mktime(9, 28, 0, 4, 4, 2002);
print date("r", $today) . "\n";
print date("r", strtotime("last saturday", $today)) . "\n";
?>
Thu, 4 Apr 2002 09:28:00 +0200
Fri, 29 Mar 2002 23:00:00 +0100
Previous Comments:
------------------------------------------------------------------------
[2002-08-19 13:55:20] iliaa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
I've just tried this on PHP 4.3.0-dev on linux and the function appears
to work fine.
------------------------------------------------------------------------
[2002-07-04 14:54:32] sniper@php.net
Reproduced with PHP 4.3.0-dev.
------------------------------------------------------------------------
[2002-07-04 13:40:20] eru@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.
----
To be totally sure, that this is indeed a bug, please use a fresher
version of PHP and retest it then.
Thanks for your help!
------------------------------------------------------------------------
[2002-04-04 09:28:53] sveinp@basefarm.no
[sveinp@ws195 ~]$ php -q
<?PHP
print strftime("%c",strtotime("last saturday")) . "\n";
?>
Fri Mar 29 23:00:00 2002
[sveinp@ws195 ~]$
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16429&edit=1