unclecheese / silverstripe-event-calendar

The Event Calendar module for SilverStripe
GNU General Public License v2.0
31 stars 78 forks source link

ICS time always set to 00:00 #147

Open RVXD opened 6 years ago

RVXD commented 6 years ago

If you add an ICS feed, the times of the events are always set to 00:00

This is caused by this line in Calendar.php

//Set event start/end to midnight to allow comparisons below to work $startdatetime->modify('00:00:00'); $enddatetime->modify('00:00:00');

The comment says it was added to 'make comparisons work'. I think the comparisons should be changed and not the actual start and end time. Perhaps create a copy of de datetime items for the comparison only?