From a11f9e8103eba13aebad214a30179d73bef1ba84 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Tue, 6 Sep 2005 08:43:58 +0000 Subject: This should finish tidying calendar time shift calendar is fixed UTC layout, and data is moved by local offset to match it The PROBLEM with this is that we do not have any means of handling daylight saving for the DISPLAY offset! Shift is simply the CURRENT display offset :( --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 7d9e243..9899ed8 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ $week ) { foreach( $week as $d => $day ) { $dayEvents = array(); - if( !empty( $bitEvents[$day['day'] - $gCalendar->mDate->get_display_offset()] ) ) { + if( !empty( $bitEvents[$day['day']] ) ) { $i = 0; - foreach( $bitEvents[$day['day'] - $gCalendar->mDate->get_display_offset()] as $bitEvent ) { + foreach( $bitEvents[$day['day']] as $bitEvent ) { $dayEvents[$i] = $bitEvent; $gBitSmarty->assign( 'cellHash', $bitEvent ); $dayEvents[$i]["over"] = $gBitSmarty->fetch( "bitpackage:calendar/calendar_box.tpl" ); -- cgit v1.3