Timezone adjustments

From GRWiktionaryHelp

MediaWiki Handbook: Contents | How To Use Help | Other help Software help for MediaWikiReaders, Editors, Admins e0 +/-

  • Use this in LocalSettings.php config to force MediaWiki to use UTC in a wiki:
# Ugly hack warning! This needs smoothing out.
$wgLocaltimezone = "UTC";
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
$wgLocalTZoffset = date("Z") / 3600;
putenv("TZ=$oldtz");

For more time zone examples, see Brion's wikitech mail about this.

  • If you just want to use the local time of your PC, you can just add this line in your LocalSettings.php :
    $wgLocalTZoffset = date("Z") / 3600;

And now the time of your modifications is the time of your pc. ;-)

  • The different LocalTimeZone don't seem to work (for example : Europe/Berlin, Europe/Paris, ...).
MediaWiki Handbook: Contents | Other help


Reading: Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category | Special page
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit |
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | Wikitext | New page | List | Images/files | Image page | Special characters | Formula | Table | EasyTimeline | Template | Renaming / Moving a page | Editing shortcuts | Talk page | Testing | Export |

Wiki Projects: Wikibooks | Wikicommons | Wikipedia | Wikiquote | Wikisource | Wiktionary |