silverstripe-event-calendar icon indicating copy to clipboard operation
silverstripe-event-calendar copied to clipboard

Feed Event times always set to midnight for start and end time

Open scttw opened this issue 7 years ago • 1 comments

A recent change to the getFeedEvents function in Calendar.php is setting all feed events to have a start and end time of midnight. This appears to have been changed to allow a comparison to work, however the original times from the feed are not being re-set after they are set to 00:00:00. The result of this is all feed events display 12:00 as their start and end time when displayed in the template.

The modified variables at ln 35 and 36 should be saved into a new pair of comparison specific variables which are then discarded, rather than saving the modified variables back to the object.

scttw avatar Nov 30 '17 23:11 scttw

Will submit a patch shortly

scttw avatar Nov 30 '17 23:11 scttw