SolarArbiter / solarforecastarbiter-api

HTTP API and database schema for the Solar Forecast Arbiter
https://api.solarforecastarbiter.org
MIT License
10 stars 6 forks source link

Store report start/end in UTC #327

Open lboeman opened 2 years ago

lboeman commented 2 years ago

See: https://github.com/SolarArbiter/solarforecastarbiter-dashboard/issues/462

We currently define start end as something like The end of the analysis period as an ISO 8601 datetime. Unlocalized times are assumed to be UTC. We should convert any offset items into UTC for storage, since we're storing the timezone separately users can convert back as necessary.

Issues arise in report computation when a reports start/end span a DST transition and the reported start and end have different fixed Offsets.