aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-26 22:33:33 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-26 22:33:33 +0000
commit13e49da76fb0cfca342765397a8a8ae7f20051b3 (patch)
tree7eb0eb91b005f69b7784d83ad880397c39c924de /functions/date_functions.php
parentb4d635e784aa5589a34d3bbadaf3e93482fa4d33 (diff)
downloadphpicalendar-13e49da76fb0cfca342765397a8a8ae7f20051b3.tar.gz
phpicalendar-13e49da76fb0cfca342765397a8a8ae7f20051b3.tar.bz2
phpicalendar-13e49da76fb0cfca342765397a8a8ae7f20051b3.zip
revert event length display adjustment - messes up overlap calculations
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index 96e0c75..07950ec 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -145,7 +145,7 @@ function calcTime($have, $want, $time) {
}
function chooseOffset($time, $timezone = '') {
- global $tz_array;
+ global $tz_array, $summary;
switch ($timezone) {
case '':
$offset = 'none';
@@ -155,7 +155,7 @@ function chooseOffset($time, $timezone = '') {
break;
default:
if (is_array($tz_array) && array_key_exists($timezone, $tz_array)) {
- $dlst = is_daylight($time, $timezone);
+ $dlst = is_daylight($time, $timezone);
$offset = $tz_array[$timezone][$dlst];
} else {
$offset = '+0000';

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