From e164a301ce445fa3543e4e60509da50ee7e77dd3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 2 Sep 2005 05:44:07 +0000 Subject: [PATCH] * (bug 3306) Document $wgLocalTZoffset --- RELEASE-NOTES | 1 + includes/DefaultSettings.php | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6c3c4fee48..9d9adc5c2a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -79,6 +79,7 @@ fully support the editing toolbar, but was found to be too confusing. should provide the expected transparency here and fits usage patterns better. * (bug 3292) Fix move-over-redirect test when current entries are not plaintext * (bug 2078) Don't hide watch tab on preview +* (bug 3306) Document $wgLocalTZoffset === Caveats === diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index a7ce7e0319..273146a69a 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1387,6 +1387,9 @@ $wgBrowserBlackList = array( * Fake out the timezone that the server thinks it's in. This will be used for * date display and not for what's stored in the DB. Leave to null to retain * your server's OS-based timezone value. This is the same as the timezone. + * + * This variable is currently used ONLY for signature formatting, not for + * anything else. */ # $wgLocaltimezone = 'GMT'; # $wgLocaltimezone = 'PST8PDT'; @@ -1394,6 +1397,27 @@ $wgBrowserBlackList = array( # $wgLocaltimezone = 'CET'; $wgLocaltimezone = null; +/** + * Set an offset from UTC in hours to use for the default timezone setting + * for anonymous users and new user accounts. + * + * This setting is used for most date/time displays in the software, and is + * overrideable in user preferences. It is *not* used for signature timestamps. + * + * You can set it to match the configured server timezone like this: + * $wgLocalTZoffset = date("Z") / 3600; + * + * If your server is not configured for the timezone you want, you can set + * this in conjunction with the signature timezone and override the TZ + * environment variable like so: + * $wgLocaltimezone="Europe/Berlin"; + * putenv("TZ=$wgLocaltimezone"); + * $wgLocalTZoffset = date("Z") / 3600; + * + * Leave at NULL to show times in universal time (UTC/GMT). + */ +$wgLocalTZoffset = null; + /** * When translating messages with wfMsg(), it is not always clear what should be -- 2.20.1