olinlibrary / futureboard

A digital signage platform for sharing video and other media, supplemented by information about events happening on campus
https://futureboard.olin.build
3 stars 0 forks source link

events setup crashes on time with sub seconds #310

Open osteele opened 6 years ago

osteele commented 6 years ago

The event list at/views/board and /views/events should be sorted by date.

Multiday events should be sorted as though their start date were max(event.start, now.start_of_day).

osteele commented 6 years ago

The actual issue was that one of the events ("Infrastructure Workshop Course Exhibition", May 12–17, id=5aecfb808c031300180f75f4) had an end date with sub-second accuracy (2018-05-17 03:59:59.999000), that Date.parse can't handle.

I've added a workaround to truncate the subseconds. (Not rounding, just because it's easier and I don't know where the fix should really go.)