aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2009-02-05 15:38:24 +0000
committerJason Oster <parasytic@users.sourceforge.net>2009-02-05 15:38:24 +0000
commitf04fa42beedbe03b0d47439591dfe1ba3ffa26a3 (patch)
treefcc4a12b73e8db39d66220a1c6134791390e29e0
parent9a5a29d288288ae71b13eafbbcb9024648a25f88 (diff)
downloadphpicalendar-f04fa42beedbe03b0d47439591dfe1ba3ffa26a3.tar.gz
phpicalendar-f04fa42beedbe03b0d47439591dfe1ba3ffa26a3.tar.bz2
phpicalendar-f04fa42beedbe03b0d47439591dfe1ba3ffa26a3.zip
Fix timezone DST calculation with all-day events: Bug #2557336
-rw-r--r--functions/date_functions.php2
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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy