dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1b67dc0
)
Merge "Register a default value for the timecorrection preference"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 1 Sep 2016 20:33:50 +0000
(20:33 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 1 Sep 2016 20:33:50 +0000
(20:33 +0000)
includes/Setup.php
patch
|
blob
|
history
diff --git
a/includes/Setup.php
b/includes/Setup.php
index
cbe4e2e
..
97cba25
100644
(file)
--- a/
includes/Setup.php
+++ b/
includes/Setup.php
@@
-638,6
+638,9
@@
date_default_timezone_set( $wgLocaltimezone );
if ( is_null( $wgLocalTZoffset ) ) {
$wgLocalTZoffset = date( 'Z' ) / 60;
}
+// The part after the System| is ignored, but rest of MW fills it
+// out as the local offset.
+$wgDefaultUserOptions['timecorrection'] = "System|$wgLocalTZoffset";
if ( !$wgDBerrorLogTZ ) {
$wgDBerrorLogTZ = $wgLocaltimezone;