From 2665e47afcf94538ee06ce5f6e1302bf2bdcf9f8 Mon Sep 17 00:00:00 2001 From: defacer Date: Fri, 8 Apr 2005 05:39:53 +0000 Subject: [PATCH] usertime() now compensates for DST. --- lib/moodlelib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 7761bd469ed..a4bbcf5b23b 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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; }