usertime() now compensates for DST.

This commit is contained in:
defacer 2005-04-08 05:39:53 +00:00
parent 538ce38a04
commit 2665e47afc

View File

@ -790,6 +790,8 @@ function usergetdate($time, $timezone=99) {
function usertime($date, $timezone=99) {
$timezone = get_user_timezone($timezone);
$date -= dst_offset_on($date);
if (abs($timezone) > 13) {
return $date;
}