手册:$wgLocaltimezone
时区设置: $wgLocaltimezone | |
---|---|
伪造服务器认为它所在的时区。 |
|
引进版本: | 1.4.0 (r773) |
移除版本: | 仍在使用 |
允许的值: | (字符串)或null |
默认值: | null |
其他设置: 按首字母排序 | 按功能排序 |
细节
Set the timezone for the wiki.
It will be used when generating ~~~~
signatures, and as the default timezone for dates in page history, logs etc. (this can be overridden in user preferences).
将变量设置为null
会将显示的时区设置为服务器的默认时区。
See https://www.php.net/timezones for the list of valid time zones.
- 示例:
$wgLocaltimezone = 'UTC';
$wgLocaltimezone = 'Asia/Bangalore';
$wgLocaltimezone = 'America/New_York';
有关更多信息,请参考手册:时区 。