r60826 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r60825
|
r60826
|
r60827
>
Date:
01:51, 8 January 2010
Author:
tstarling
Status:
ok
Tags:
Comment:
When $wgLocaltimezone is null, make #timel match the behaviour of {{LOCALTIME}} in trunk: use the server's default timezone instead of UTC. Won't throw E_STRICT after the
r60825
change to Setup.php.
Modified paths:
/trunk/extensions/ParserFunctions/ParserFunctions_body.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php
—
—
@@ -407,7 +407,7 @@
408
408
if ( isset( $wgLocaltimezone ) ) {
409
409
$tz = new DateTimeZone( $wgLocaltimezone );
410
410
} else {
411
- $tz = new DateTimeZone( 'UTC' );
411
+ $tz = new DateTimeZone( date_default_timezone_get() );
412
412
}
413
413
} else {
414
414
# if local time was not requested, convert to UTC
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r60825
* Fixed the issue of all date functions throwing E_STRICT on their first call...
tstarling
01:48, 8 January 2010
Status & tagging log
13:27, 18 January 2010
😂
(
talk
|
contribs
)
changed the
status
of r60826
[
removed:
new
added:
ok]