It looks like you have to specify whether or not each event is
"allDay" otherwise it assumes that it is. So if you're going to
specifically allow people to do all day events, you may want to have a
checkbox to flag that and add that check into the template.
Here's a modified script that won't show everything as being all day
and also adds in some custom time formatting:
<script type="text/javascript">
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
timeFormat: {
// for agendaWeek and agendaDay
agenda: 'h(:mm)t{ - h(:mm)t}', // 5a - 6:30p the parens ()
mean don't show if it's :00, t means show "a" for am and "p" for pm
//for basicWeek and basicDay
basic: 'h(:mm)t{ - h(:mm)t}', // 5a - 6:30p
//basicDay: 'h(:mm) t{ - h(:mm)t}', // 5:00a - 6:30p
// for all other views
'': 'h(:mm)t { - h(:mm)t}' // 7pm
},
editable: false,
events: [
{{for reservation in reservations:}}{{t1=reservation.start_time}}
{{t2=reservation.stop_time}}
{
start: new Date('{{=t1.strftime('%B %d, %Y %H:%M:%S')}}'),
end: new Date('{{=t2.strftime('%B %d, %Y %H:%M:%S')}}'),
allDay: false,
{{if
auth.user.id==reservation.user:}}
title: '{{=db.plugin_booking_resource
[reservation.resource].name.replace("'","\\'")}}',
url: '{{=URL(r=request,f='edit_reservation',args=
reservation.id)}}',
{{else:}}
title: '{{=("[%(first_name)s %(last_name)s]" %db.auth_user
[reservation.user]).replace("'","\\'")}}',
{{pass}}
},
{{pass}}
]
});
});
</script>
Brian