Manual:$wgLocaltimezone

Details
'''Note: The information in this article is out of date. Please refer to this article on Meta for more information.'''

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  to retain your server's OS-based timezone value. This is the same as the timezone. Examples: $wgLocaltimezone = 'GMT'; $wgLocaltimezone = 'EST'; $wgLocaltimezone = 'EST6'; ## -6 hrs instead of -5 $wgLocaltimezone = 'PST8PDT'; $wgLocaltimezone = 'Europe/Sweden'; $wgLocaltimezone = 'CET';

Implementation
As of MediaWiki 1.9.3, in source file includes/Parser.php, variable  is used by function pstPass2 which performs various pre-save transformations, including the expansion of signature macros  ~  and   ; and by function getVariableValue which is called by function variableSubstitution which handles expansion of wiki syntax such as    as described at Meta:Help:Variable.

The later code path appears to be in conflict with the code comment in DefaultSettings.php which states: * This variable is currently used ONLY for signature formatting, not for * anything else.

Another potential discrepancy is that pstPass2</tt> obtains the adjusted current date via the function $wgContLang->timeanddate</tt> while getVariableValue</tt> obtains the adjusted date by calling date</tt> directly.