Created
March 16, 2011 06:06
-
-
Save whym/872090 to your computer and use it in GitHub Desktop.
MediaWiki の LocalSettings.php に追記して、デフォルトタイムゾーンをJSTにするための設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # see also http://www.mediawiki.org/wiki/Manual:Timezone#Primary_Method | |
| #Set Default Timezone | |
| $wgLocaltimezone = "Asia/Tokyo"; | |
| $oldtz = getenv("TZ"); | |
| putenv("TZ=$wgLocaltimezone"); | |
| # Versions before 1.7.0 used $wgLocalTZoffset as hours. | |
| # After 1.7.0 offset as minutes | |
| $wgLocalTZoffset = date("Z") / 60; | |
| putenv("TZ=$oldtz"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment