aboutsummaryrefslogtreecommitdiffstats
path: root/week.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 /week.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 'week.php')
-rw-r--r--week.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/week.php b/week.php
index ed95bd0..5c170ad 100644
--- a/week.php
+++ b/week.php
@@ -11,7 +11,7 @@ if ($minical_view == "current") $minical_view = "week";
$starttime = "0500";
$weekstart = 1;
$unix_time = strtotime($getdate);
-$today_today = date('Ymd', strtotime("now + $second_offset seconds"));
+$today_today = date('Ymd', time() + $second_offset);
$next_week = date("Ymd", strtotime("+1 week", $unix_time));
$prev_week = date("Ymd", strtotime("-1 week", $unix_time));
$next_day = date('Ymd', strtotime("+1 day", $unix_time));

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