diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-05-09 20:28:56 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-05-09 20:28:56 +0000 |
commit | 61c18056b9f85a789b789e7ddbe6fad09e74d92f (patch) | |
tree | 4f0f8dc315060d65006ea0a4787802be6ff7b8ef /day.php | |
parent | f6f28f72894b5d54e9ded8c72c927bc8168e336f (diff) | |
download | phpicalendar-61c18056b9f85a789b789e7ddbe6fad09e74d92f.tar.gz phpicalendar-61c18056b9f85a789b789e7ddbe6fad09e74d92f.tar.bz2 phpicalendar-61c18056b9f85a789b789e7ddbe6fad09e74d92f.zip |
Added server offset in seconds.
Diffstat (limited to 'day.php')
-rw-r--r-- | day.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ if (isset($HTTP_GET_VARS['jumpto_day'])) { $jumpto_day_time = strtotime($HTTP_GET_VARS['jumpto_day']); if ($jumpto_day_time == -1) { - $getdate = date('Ymd'); + $getdate = date('Ymd', strtotime("now + $second_offset seconds")); } else { $getdate = date('Ymd', $jumpto_day_time); } @@ -15,7 +15,7 @@ if ($minical_view == 'current') $minical_view = 'day'; $starttime = '0500'; $weekstart = 1; $unix_time = strtotime($getdate); -$today_today = date ('Ymd'); +$today_today = date ('Ymd', $unix_time); $tomorrows_date = date( 'Ymd', strtotime('+1 day', $unix_time)); $yesterdays_date = date( 'Ymd', strtotime('-1 day', $unix_time)); $display_date = localizeDate($dateFormat_day, $unix_time); |