tnc-ca-geo / animl-frontend

A frontend web app for viewing & labeling camera trap data by The Nature Conservancy.
https://animl.camera
Other
16 stars 0 forks source link

Better time/timezone handling #95

Closed nathanielrindlaub closed 1 year ago

nathanielrindlaub commented 2 years ago

See https://github.com/tnc-ca-geo/animl-api/issues/35 for corresponding issue in animl-api.

A couple changes: moving forward, rather than using the dateTimeOriginal field from images, we'll use dateTimeUTC, which is adjusted for the timezone in which the deployment lives and shifted to UTC+0. We should assume that ALL dates (deployment start/end dates, dates in filters, etc.) will be sent as and evaluated in UTC+0 from the back end. I'm also thinking of moving to using ISO 8601 for all external dates so we may need to update parsing on the front end.

TODO's on the frontend include:

nathanielrindlaub commented 1 year ago
nathanielrindlaub commented 1 year ago

Done!!