osuosl / fenestra

A dashboard displaying stats about the OSU Open Source Lab
Apache License 2.0
2 stars 3 forks source link

TimeSync widget passes entire ISO datetime instead of just date. #48

Closed MorganEPatch closed 7 years ago

MorganEPatch commented 7 years ago

The timesync widget is passing requests to the server as

query = {
    'start' => [startTime.iso8601],
    'end' => [endTime.iso8601]
}

But this passes the entire ISO datetime, e.g. '2016-12-19T14:18:54-0800'. The timesync API is supposed to only accept ISO short-form dates, i.e. '2016-12-19'. This may break the functionality when communicating with the TimeSync API.