From f04fa42beedbe03b0d47439591dfe1ba3ffa26a3 Mon Sep 17 00:00:00 2001 From: Jason Oster Date: Thu, 5 Feb 2009 15:38:24 +0000 Subject: Fix timezone DST calculation with all-day events: Bug #2557336 --- functions/date_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/date_functions.php b/functions/date_functions.php index 61836a0..0aa9704 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -278,7 +278,7 @@ function extractDateTime($data, $property, $field) { $tz_dt = $phpiCal_config->timezone; } // Set the values. - $unixtime = calcTime($offset_tmp, $server_offset_tmp, $unixtime); + if ($allday == '') $unixtime = calcTime($offset_tmp, $server_offset_tmp, $unixtime); #echo "offset_tmp $offset_tmp, server_offset_tmp $server_offset_tmp, $unixtime =".date("Ymd His",$unixtime)." $time
"; $date = date('Ymd', $unixtime); if ($allday == '') $time = date('Hi', $unixtime); -- cgit v1.2.3