#42755 [Opn->Asn]: date() returns incorrect time by +1 hour
| From: | tony2001@php.net | Date: | Tue, 02 Oct 2007 09:35:21 +0000 |
| Subject: | #42755 [Opn->Asn]: date() returns incorrect time by +1 hour | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118058@lists.php.net to get a copy of this message | ||
ID: 42755
Updated by: tony2001@php.net
Reported By: andrew at confirmalert dot com dot au
-Status: Open
+Status: Assigned
-Bug Type: *General Issues
+Bug Type: Date/time related
Operating System: Win 2003 Server SP2
PHP Version: 5.2.4
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2007-09-25 10:51:18] andrew at confirmalert dot com dot au
Description:
------------
Date function parses correct unix timestamp in PHP 5.0.3 but not in PHP
5.2.4.
I have set the timezone of the webserver to Casablanca Morroco which is
a timezone that does not observe ANY daylight savings changes (i.e. it
is a constant time) even though the server is physically located in San
Diego USA.
Reproduce code:
---------------
date("Y-m-d @ g:i", 1190671200);
Expected result:
----------------
//Expected 2007-09-25 @ 8:00
Actual result:
--------------
//Produces 2007-09-25 @ 9:00
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42755&edit=1