aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-20 00:33:14 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-20 00:33:14 +0000
commit9cc4b1667897ac0e9db28044d96e7b96a7ac38e5 (patch)
tree9ba349e112a4a242a04b895ea69ab7b349018402 /functions
parentedd9a9fd1a3451f7868400fcf9d2ebe0cf563c51 (diff)
downloadphpicalendar-9cc4b1667897ac0e9db28044d96e7b96a7ac38e5.tar.gz
phpicalendar-9cc4b1667897ac0e9db28044d96e7b96a7ac38e5.tar.bz2
phpicalendar-9cc4b1667897ac0e9db28044d96e7b96a7ac38e5.zip
misc minor fixes
Diffstat (limited to 'functions')
-rw-r--r--functions/init/date_range.php2
-rw-r--r--functions/list_functions.php4
-rw-r--r--functions/parse/parse_tzs.php8
3 files changed, 7 insertions, 7 deletions
diff --git a/functions/init/date_range.php b/functions/init/date_range.php
index 78b0db5..d7e4235 100644
--- a/functions/init/date_range.php
+++ b/functions/init/date_range.php
@@ -3,7 +3,7 @@ if (!isset($getdate)) {
if (isset($_GET['getdate']) && ($_GET['getdate'] !== '')) {
$getdate = $_GET['getdate'];
} else {
- $getdate = date('Ymd', time() + $second_offset);
+ $getdate = date('Ymd', time() + $phpIcal_config->second_offset);
}
}
diff --git a/functions/list_functions.php b/functions/list_functions.php
index 0ec2474..2775059 100644
--- a/functions/list_functions.php
+++ b/functions/list_functions.php
@@ -1,9 +1,9 @@
<?php
function list_jumps() {
- global $second_offset, $lang, $cal;
+ global $phpiCal_config, $lang, $cal;
$calName = join(',', array_map("getCalendarName", split(',', $cal)));
- $today = date('Ymd', time() + $second_offset);
+ $today = date('Ymd', time() + $phpiCal_config->second_offset);
$return = '<option value="#">'.$lang['l_jump'].'</option>';
$return .= '<option value="day.php?cal='.$calName.'&amp;getdate='.$today.'">'.$lang['l_goday'].'</option>';
$return .= '<option value="week.php?cal='.$calName.'&amp;getdate='.$today.'">'.$lang['l_goweek'].'</option>';
diff --git a/functions/parse/parse_tzs.php b/functions/parse/parse_tzs.php
index daafe33..c431d29 100644
--- a/functions/parse/parse_tzs.php
+++ b/functions/parse/parse_tzs.php
@@ -46,10 +46,10 @@ while (!feof($ifile)) {
$tz_array[$tz_id] = array(
0 => $offset_s,
1 => $offset_d,
- 'dt_start' => $begin_daylight,
- 'st_start' => $begin_std,
- 'st_name' => $st_name,
- 'dt_name' => $dt_name
+ 'dt_start' => @$begin_daylight,
+ 'st_start' => @$begin_std,
+ 'st_name' => @$st_name,
+ 'dt_name' => @$dt_name
); #echo "<pre>$tz_id"; print_r($tz_array[$tz_id]);echo"</pre>";
break;

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