Bug #61685 [PATCH]: putenv('TZ=UTC') doesn't update timezone for localtime()
| From: | mattficken@php.net | Date: | Fri, 27 Apr 2012 22:26:07 +0000 |
| Subject: | Bug #61685 [PATCH]: putenv('TZ=UTC') doesn't update timezone for localtime() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-170001@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61685&edit=1
ID: 61685
Patch added by: mattficken@php.net
Reported by: mattficken@php.net
Summary: putenv('TZ=UTC') doesn't update timezone for
localtime()
Status: Not a bug
Type: Bug
Package: Calendar related
Operating System: Windows
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: 61685
Revision: 1335565567
URL: https://bugs.php.net/patch-display.php?bug=61685&patch=61685&revision=1335565567
Previous Comments:
------------------------------------------------------------------------
[2012-04-10 04:38:52] laruence@php.net
- Date extension
463 - Setting the timezone with the TZ environment variable is no longer
464 supported, instead date.timezone and/or date_default_timezone_set()
465 have to be used.
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/UPGRADING?view=markup
------------------------------------------------------------------------
[2012-04-09 21:53:46] mattficken@php.net
The following patch has been added/updated:
Patch Name: unixtojd.patch.txt
Revision: 1334008426
URL: https://bugs.php.net/patch-display.php?bug=61685&patch=unixtojd.patch.txt&revision=1334008426
------------------------------------------------------------------------
[2012-04-09 21:53:25] mattficken@php.net
Description:
------------
Regarding Test: ext/calendar/tests/unixtojd.phpt
Test calls putenv('TZ=UTC') but result of unixtojd(1000000000) is off by -1 day unless
TZ=UTC is added to the ENV section.
Test script:
---------------
see ext/calendar/tests/unixtojd.phpt
Expected result:
----------------
Pass
Actual result:
--------------
Fail
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61685&edit=1