aboutsummaryrefslogtreecommitdiffstats
path: root/functions/list_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2005-11-30 02:20:32 +0000
committerJim Hu <jimhu@users.sourceforge.net>2005-11-30 02:20:32 +0000
commit9a55eb6d834ac03de662c66a2b4df2418253bea0 (patch)
tree4a289cef630a997426265b384f11a3bf057ab712 /functions/list_functions.php
parentafc18a5da7a0673965dc76ead201e1521b0597eb (diff)
downloadphpicalendar-9a55eb6d834ac03de662c66a2b4df2418253bea0.tar.gz
phpicalendar-9a55eb6d834ac03de662c66a2b4df2418253bea0.tar.bz2
phpicalendar-9a55eb6d834ac03de662c66a2b4df2418253bea0.zip
change date calcs in several files for compatibility with some php installs that fail to calculate now+something
Diffstat (limited to 'functions/list_functions.php')
-rw-r--r--functions/list_functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/list_functions.php b/functions/list_functions.php
index 5d62fb7..a14f5f6 100644
--- a/functions/list_functions.php
+++ b/functions/list_functions.php
@@ -3,7 +3,7 @@
function list_jumps() {
global $second_offset, $lang, $cal;
$calName = getCalendarName($cal);
- $today = date('Ymd', strtotime("now + $second_offset seconds"));
+ $today = date('Ymd', time() + $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>';

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