Edit report at https://bugs.php.net/bug.php?id=61685&edit=1
ID: 61685 Patch added by: [email protected] Reported by: [email protected] Summary: putenv('TZ=UTC') doesn't update timezone for localtime() Status: Open 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: unixtojd.patch.txt Revision: 1334008426 URL: https://bugs.php.net/patch-display.php?bug=61685&patch=unixtojd.patch.txt&revision=1334008426 Previous Comments: ------------------------------------------------------------------------ [2012-04-09 21:53:25] [email protected] 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
