not safe to rely on the system's timezone settings. Please use the date.timezone setting [MediaWiki 1.11.0]
註冊帳號寄認證信 或 要求寄新密碼時,MediaWiki出現錯誤訊息(雖然有順利寄出)
解決方式: 修改php.ini中的時區設定
儲存設定後,重新啟動網站伺服器。
參考資料:
* Why is it "...not safe to rely on the system's timezone settings."??? - Zend Core for i5/OS - PHP support & tips - Zend.com
延伸閱讀:
* Manual:Timezone - MediaWiki
* 調整MediaWiki顯示時間
在LocalSettings.php設定如后,並未解決該問題:
* Using external SMTP server ($wgSMTP)
環境(Windows 2003 Server):
* MediaWiki: 1.11.0
* PHP: 5.2.5 (apache2handler)
* MySQL: 5.0.45-community-nt
發送郵件錯誤(Error sending mail): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead
解決方式: 修改php.ini中的時區設定
date.timezone="UTC"
儲存設定後,重新啟動網站伺服器。
參考資料:
* Why is it "...not safe to rely on the system's timezone settings."??? - Zend Core for i5/OS - PHP support & tips - Zend.com
延伸閱讀:
* Manual:Timezone - MediaWiki
* 調整MediaWiki顯示時間
在LocalSettings.php設定如后,並未解決該問題:
#Set Default Timezone
$wgLocaltimezone = "Asia/Taipei";
#Calculate the timezone offset with UTC
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
# $wgLocalTZoffset = date("Z") / 3600; # Versions before 1.7.0 used $wgLocalTZoffset as hours.
$wgLocalTZoffset = date("Z") / 60; # After 1.7.0 offset as minutes
putenv("TZ=$oldtz");
* Using external SMTP server ($wgSMTP)
環境(Windows 2003 Server):
* MediaWiki: 1.11.0
* PHP: 5.2.5 (apache2handler)
* MySQL: 5.0.45-community-nt
留言
張貼留言