Calendar duration incorrect when creating a new booking

Hi David,

I found an issue when creating a new booking with start and end times selected and the "Add to calendar" option checked off. The calendar entries were being given astronomical time durations because of line 253 in lib.php. This little patch appears to have fixed the issue. I'm using Moodle 2.7, by the way.