Bug #73909 [NEW]: Instanbul local time is incorrect
| From: | pgabardo at graphiq dot com | Date: | Tue, 10 Jan 2017 18:09:11 +0000 |
| Subject: | Bug #73909 [NEW]: Instanbul local time is incorrect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-206473@lists.php.net to get a copy of this message | ||
From: pgabardo at graphiq dot com
Operating system: MacOS
PHP version: 7.1.0
Package: Date/time related
Bug Type: Bug
Bug description:Instanbul local time is incorrect
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 bug report at https://bugs.php.net/bug.php?id=73909&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73909&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73909&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73909&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73909&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73909&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73909&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73909&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73909&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73909&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73909&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73909&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73909&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73909&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73909&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73909&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73909&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73909&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73909&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73909&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73909&r=mysqlcfg