electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.
https://www.bloomclimate.com
MIT License
434 stars 104 forks source link

Replaces "durationHours" with "endDatetime" #361

Closed dafrie closed 4 years ago

dafrie commented 4 years ago

Part of https://github.com/tmrowco/tmrow/issues/1932. This should replace all usages of durationHours with endDatetime.

I disabled the prettier formatOnSave hook, as otherwise there would be too many unnecessary changes. But somehow the 2 files refactored in the commit 931fd9f are always automatically formatted...

Not sure how we should proceed with regards to testing?

corradio commented 4 years ago

I'll let @madsnedergaard review this and coordinate our effort to make sure we do all changes at once throughout all systems