|
From: <ji...@us...> - 2008-12-29 03:07:41
|
Update of /cvsroot/phpicalendar/phpicalendar/includes In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10074/includes Modified Files: event.php Log Message: change handling of multiday allday events in week view; other misc changes Index: event.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/includes/event.php,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** event.php 28 Dec 2008 20:13:01 -0000 1.47 --- event.php 29 Dec 2008 03:07:34 -0000 1.48 *************** *** 3,6 **** --- 3,7 ---- define('BASE', '../'); include_once(BASE.'functions/init.inc.php'); + require_once(BASE.'functions/date_functions.php'); require_once(BASE.'functions/template.php'); *************** *** 15,21 **** // All day if ($_POST['time'] == -1) { ! $event_times = $lang['l_all_day']; } else { ! $event_times = date($timeFormat, $event['start_unixtime']) . ' - ' . date($timeFormat, $event['end_unixtime']); } --- 16,28 ---- // All day if ($_POST['time'] == -1) { ! $start = localizeDate($dateFormat_week, $event['start_unixtime']); ! $end = localizeDate($dateFormat_week, ($event['end_unixtime'] - 60)); ! $event_times = $lang['l_all_day']." $start"; ! if ($start != $end) $event_times = "$start - $end"; } else { ! $start = date($timeFormat, $event['start_unixtime']); ! $end = date($timeFormat, $event['end_unixtime']); ! $event_times = "$start"; ! if ($start != $end) $event_times = "$start - $end"; } |