This (draft) pull request makes sure we keep track of any differences in timezone between system time (e.g. used for at) and the time zone returned by our datasource. To do this, we need to:
[x] Make sure the datetime objects in the CarbonIntensityPointEstimate are timezone aware
[x] Set the correct timezone on these objects
[x] Make sure the timezone is still set for the calculated start time
[x] Convert to the correct system time when we output a start time
[x] Make sure our other reported dates and times are correct with respect to timezones
With a little luck, the actual calculation will 'just work'. We should check this.
This (draft) pull request makes sure we keep track of any differences in timezone between system time (e.g. used for
at
) and the time zone returned by our datasource. To do this, we need to:With a little luck, the actual calculation will 'just work'. We should check this.
This addresses #21