diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2009-02-05 15:38:24 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2009-02-05 15:38:24 +0000 |
commit | f04fa42beedbe03b0d47439591dfe1ba3ffa26a3 (patch) | |
tree | fcc4a12b73e8db39d66220a1c6134791390e29e0 /functions/date_functions.php | |
parent | 9a5a29d288288ae71b13eafbbcb9024648a25f88 (diff) | |
download | phpicalendar-f04fa42beedbe03b0d47439591dfe1ba3ffa26a3.tar.gz phpicalendar-f04fa42beedbe03b0d47439591dfe1ba3ffa26a3.tar.bz2 phpicalendar-f04fa42beedbe03b0d47439591dfe1ba3ffa26a3.zip |
Fix timezone DST calculation with all-day events: Bug #2557336
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r-- | functions/date_functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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<br>"; $date = date('Ymd', $unixtime); if ($allday == '') $time = date('Hi', $unixtime); |