Re: cvs: php-src / NEWS /ext/date php_date.c php_date.h /ext/date/tests bug26198.phpt bug29585.phpt default-timezone-2.phpt
timezone-configuration.phpt
| From: | Nuno Lopes | Date: | Sun, 03 Jul 2005 11:54:12 +0000 |
| Subject: | Re: cvs: php-src / NEWS /ext/date php_date.c php_date.h /ext/date/tests bug26198.phpt bug29585.phpt default-timezone-2.phpt timezone-configuration.phpt |
||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17087@lists.php.net to get a copy of this message | ||
----- Original Message -----
derick Sat Jul 2 17:19:25 2005 EDT Log: - Overhauled selecting the correct timezone. The timezone set with "date_timezone_set" override the TZ environment variable, which on its turn overrides the date.timezone setting. If none of the three is set, we fallback to UTC. - Added "date_timezone_set" function to set the timezone that the date functions will use.Hi Derick et all, I think that having the date_timezone_set() and date_timezone_get() functions along with the default_timezone ini option is redundant. You can use ini_set()/ini_get() to emulate the functions you added. I don't see a point to have 3 ways to set the TZ setting.. (env, ini, function). BTW, attached is a patch to fix a couple of test cases (most date related) and the test framework on windows. Nuno