Bug #64401 [Opn->Fbk]: 21 March 2012 Strange result
| From: | rasmus@php.net | Date: | Mon, 11 Mar 2013 12:24:48 +0000 |
| Subject: | Bug #64401 [Opn->Fbk]: 21 March 2012 Strange result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177726@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64401&edit=1
ID: 64401
Updated by: rasmus@php.net
Reported by: mohsen dot taheri at gmail dot com
Summary: 21 March 2012 Strange result
-Status: Open
+Status: Feedback
Type: Bug
Package: Date/time related
Operating System: Ubuntu
PHP Version: 5.3Git-2013-03-10 (Git)
Block user comment: N
Private report: N
New Comment:
Which timezone? You probably discovered DST in your timezone.
Previous Comments:
------------------------------------------------------------------------
[2013-03-11 07:29:36] mohsen dot taheri at gmail dot com
Description:
------------
strtotime("2012-03-21 00:00:01") return value is the same as strtotime("2012-03-21
01:00:01")
both of the are 1332276001
this problem range is 2012-03-21 00:00:00 to 2012-03-21 01:00:00
I don't face this problem in any other dates
Test script:
---------------
echo date("Y-m-d H:i:s", strtotime("2012-03-21 00:00:01"))."\n";
echo date("Y-m-d H:i:s", strtotime("2012-03-21 01:00:01"))."\n";
Expected result:
----------------
2012-03-21 00:00:01
2012-03-21 01:00:01
Actual result:
--------------
2012-03-21 01:00:01
2012-03-21 01:00:01
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64401&edit=1