diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2005-11-30 02:20:32 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2005-11-30 02:20:32 +0000 |
commit | 9a55eb6d834ac03de662c66a2b4df2418253bea0 (patch) | |
tree | 4a289cef630a997426265b384f11a3bf057ab712 /day.php | |
parent | afc18a5da7a0673965dc76ead201e1521b0597eb (diff) | |
download | phpicalendar-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 'day.php')
-rw-r--r-- | day.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ if (isset($_GET['jumpto_day'])) { $jumpto_day_time = strtotime($_GET['jumpto_day']); if ($jumpto_day_time == -1) { - $getdate = date('Ymd', strtotime("now + $second_offset seconds")); + $getdate = date('Ymd', time() + $second_offset); } else { $getdate = date('Ymd', $jumpto_day_time); } @@ -18,7 +18,7 @@ if ($minical_view == 'current') $minical_view = 'day'; $weekstart = 1; $unix_time = strtotime($getdate); -$today_today = date('Ymd', strtotime("now + $second_offset seconds")); +$today_today = date('Ymd', time() + $second_offset); $next_day = date('Ymd', strtotime("+1 day", $unix_time)); $prev_day = date('Ymd', strtotime("-1 day", $unix_time)); |