From 17ec5c7bb0a403603732869abc755e7d78ff470d Mon Sep 17 00:00:00 2001 From: Greg Westin Date: Thu, 26 Jun 2003 18:08:45 +0000 Subject: Fixed the problem of 'Go to Today' and similar links pointing to an incorrect date. It seems initialization of $today_today should be moved to functions/init.inc.php, but I didn't move it because I don't understand why any of the variables at the top of month.php, week.php, etc. are initialized there rather than in init.inc.php. --- day.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'day.php') diff --git a/day.php b/day.php index 89b6f21..cb44d8d 100644 --- a/day.php +++ b/day.php @@ -15,7 +15,7 @@ if ($minical_view == 'current') $minical_view = 'day'; $starttime = '0500'; $weekstart = 1; $unix_time = strtotime($getdate); -$today_today = date ('Ymd', $unix_time); +$today_today = date('Ymd', strtotime("now + $second_offset seconds")); $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