Bug #70611 [Opn->Fbk]: date() avoid day light saving
| From: | derick@php.net | Date: | Thu, 01 Oct 2015 08:50:43 +0000 |
| Subject: | Bug #70611 [Opn->Fbk]: date() avoid day light saving | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196325@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70611&edit=1
ID: 70611
Updated by: derick@php.net
Reported by: ofirattia at gmail dot com
Summary: date() avoid day light saving
-Status: Open
+Status: Feedback
Type: Bug
Package: Date/time related
Operating System: Windows 7
PHP Version: 5.6.13
Block user comment: N
Private report: N
New Comment:
What does the following output:
<?php
echo time(), "\n";
echo date_default_timezone_get(), "\n";
echo date(DateTime::ISO8601);
?>
Previous Comments:
------------------------------------------------------------------------
[2015-09-30 21:07:35] ofirattia at gmail dot com
Description:
------------
Time - 23:57 ( time zone - Asia\Tel_Aviv )
the given output for date("H:i:s") -> 00:57
Note -
the time zone on the server was UTC + 2:00 Jerusalem
Test script:
---------------
<?php
echo date("H:i:s");
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70611&edit=1