diff options
| author | Lester Caine <lester@lsces.co.uk> | 2005-09-06 08:43:58 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2005-09-06 08:43:58 +0000 |
| commit | a11f9e8103eba13aebad214a30179d73bef1ba84 (patch) | |
| tree | 88f7cf9357edb76c4f84b4fe4a01243af8a6ccde /index.php | |
| parent | 26d1b2e80ca7f0a41c425002357e33384ce59044 (diff) | |
| download | calendar-a11f9e8103eba13aebad214a30179d73bef1ba84.tar.gz calendar-a11f9e8103eba13aebad214a30179d73bef1ba84.tar.bz2 calendar-a11f9e8103eba13aebad214a30179d73bef1ba84.zip | |
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 :(
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.34 2005/09/05 21:12:20 lsces Exp $ +// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.35 2005/09/06 08:43:58 lsces Exp $ // Copyright( c ) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. @@ -73,9 +73,9 @@ if( $_SESSION['calendar']['content_type_guid'] ) { foreach( $calMonth as $w => $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" ); |
