Manual:Timezone/ja

個人設定で設定を行っていない利用者に指定される既定のタイムゾーン (tz) を手動で設定できます.

基本的な方法

 * インストールディレクトリにある のバックアップを作成します.
 * LocalSettings.php に次のコードを追加してください


 * $LocalTimezoneとして適切な値はここにあります. 下記の例も参照してください.

代替方法
この方法は、先程の方法が機能しない状況で複数のユーザーに影響します.

Alternative methods
If you just want to use the local time of your PC, you can add this line in your LocalSettings.php. This method is what MediaWiki does by default (see includes/Setup.php); it also avoids problems with daylight savings time:

未確認の方法

 * To use your local time zone (say NZDT) put this in LocalSettings.php


 * This example may also work


 * In this case the primary method did not take daylight savings time into account. The example below works:


 * To make it work in 1.5.8, specify the offset in hours, so change all occurrences of '/ 60' to '/ 3600', for example.

Combine it with the tip above to make daylight savings work.


 * This line is needed in 1.16. It applies to both anonymous and logged in users. Note that you will need to provide the correct values if you want the zone to be selected by default in the timezone dropdown:

Manual timezone specification
The primary method needs the server to support the ' ' database; some non-GNU hosts don't do that. However you can supply timezone data manually - unfortunately, only "GMT0" seems to work on Windows.

使い方の例


 * 実際の処理は


 * または


 * 実際の処理は

For details see


 * システム設定: タイムゾーン (タイムゾーンのリスト)
 * タイムゾーンをTZから指定しています (一般的なフォーマット)
 * timezones.conf.xml (another list of time zones)