Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a4

Bug #14084 TZ variable being set wrecks global config
Submitted: 2008-06-05 17:11 UTC
From: notak Assigned: c01234
Status: Closed Package: Date (version 1.4.7)
PHP Version: 5.1.6 OS: Fedora
Roadmaps: (Not assigned)    
Subscription  


 [2008-06-05 17:11 UTC] notak (Chris Stafford)
Description: ------------ Date::inDaylightTime() function changes the TZ variable, and then resets it afterwards. If TZ was not previously set however it declines to unset it. I don't set my timezone by the TZ variable, but once this has been set by the above function, the new value overrides my php.ini setting. This means that all subsequent system time calls use the TZ of date being checked, rather than the one I want. All that seems to be required is to remove the if ($env_tz != '') check

Comments

 [2008-06-07 12:30 UTC] c01234 (C.A. Woodcock)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Date This is actually the same as bug #12529. It has been fixed in the new realease, which does not attempt to set to the TZ globally.