Bug #73909 [Com]: Instanbul local time is incorrect
| From: | contact at frank-liepert dot de | Date: | Wed, 11 Jan 2017 12:54:42 +0000 |
| Subject: | Bug #73909 [Com]: Instanbul local time is incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206517@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
Comment by: contact at frank-liepert dot de
Reported by: pgabardo at graphiq dot com
Summary: Instanbul local time is incorrect
Status: Open
Type: Bug
Package: Date/time related
Operating System: MacOS
PHP Version: 7.1.0
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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