Bug #73909 [Opn->Nab]: Instanbul local time is incorrect
| From: | heiglandreas@php.net | Date: | Wed, 11 Jan 2017 14:21:03 +0000 |
| Subject: | Bug #73909 [Opn->Nab]: Instanbul local time is incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206519@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73909&edit=1
ID: 73909
Updated by: heiglandreas@php.net
Reported by: pgabardo at graphiq dot com
Summary: Instanbul local time is incorrect
-Status: Open
+Status: Not a bug
Type: Bug
Package: Date/time related
Operating System: MacOS
PHP Version: 7.1.0
Block user comment: N
Private report: N
New Comment:
The code you provided would print out the date without the offset.
And as already explained that sounds more like an issue of an outdated timezoneDB.
Previous Comments:
------------------------------------------------------------------------
[2017-01-11 12:54:41] contact at frank-liepert dot de
This shouldn't be a problem with PHP itself but an outdated timezonedb. Turkey switched to
permanent +03:00. See also http://mm.icann.org/pipermail/tz-announce/2016-September/000041.html
------------------------------------------------------------------------
[2017-01-10 18:09:09] pgabardo at graphiq dot com
Description:
------------
I have a function to compute the local time (relative to California) of any given timezone (in
AREA/REGION format) which uses date_default_timezone_set(). The result for
'Europe/Istanbul' is one hour behind the actual local time.
Test script:
---------------
date_default_timezone_set('Europe/Istanbul');
echo date("Y-m-d\TH:i:s");
Expected result:
----------------
2017-01-10T21:07:24+02:00
Actual result:
--------------
2017-01-10T20:07:24+02:00
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73909&edit=1