* Fixed the issue of all date functions throwing E_STRICT on their first call due...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 8 Jan 2010 01:48:53 +0000 (01:48 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 8 Jan 2010 01:48:53 +0000 (01:48 +0000)
commitdebf8b2eb051d03551fe330d0ebf9a58e33a76a8
treefb10c18a204873efa2460627cdced8fd131f9c6c
parent786d42ba360254f2df00c4503a9726d9a61007b4
* Fixed the issue of all date functions throwing E_STRICT on their first call due to the default timezone not being set. Used the same approach as phpMyAdmin: utilise PHP's server timezone detection code (which unconditionally throws E_STRICT) with warnings disabled, and store the result with date_default_timezone_set() to avoid future notices. Avoids the need for warning suppression to be dotted all over the codebase, like r58559.
* (bug 2658) Don't use the TZ environment variable at all. Setting it throws an error in some restricted setups. But using it in PHP 5.1+ doesn't make sense anyway, since you'll get the E_STRICT notice described above whenever PHP tries to access it, because Derick hates environment variables. Use date_default_timezone_set().
* If $wgLocaltimezone is null, use the server's timezone as the default for signatures. This was always the behaviour documented in DefaultSettings.php but has not been the actual behaviour for some time: instead, UTC was used by default.
RELEASE-NOTES
includes/DefaultSettings.php
includes/Setup.php
includes/parser/Parser.php