From 61c18056b9f85a789b789e7ddbe6fad09e74d92f Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 9 May 2003 20:28:56 +0000 Subject: Added server offset in seconds. --- day.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'day.php') diff --git a/day.php b/day.php index a34faff..fc1a5b2 100644 --- a/day.php +++ b/day.php @@ -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); -- cgit v1.2.3