http://www.phpbb.com/phpBB/viewtopic.php?t=91471
我這麼用是行得通的,只要你設定正確時區,這段程式似乎會自己動手抓 daylight saving 設定。至於為什麼可以用不要問我,打死我也不知道為什麼....
In include\functions.phpCode:
#
#-------[ FIND ]-----------------------------------------
#
return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz));
#
#------[ REPLACE WITH ]----------------------------------
#
// Fix for Daylight Savings Time
$dst = date('I', $gmepoch) * 3600;
return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz) + $dst), $translate) : @gmdate($format, $gmepoch + (3600 * $tz) + $dst);
#
#------{ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM

