miDeb / digitales_register

Inoffizielle App für das Digitale Register (https://digitalesregister.it)
GNU General Public License v3.0
16 stars 3 forks source link

Audit all usages of `DateTime` (utc / not utc) #7

Closed miDeb closed 2 years ago

miDeb commented 3 years ago

Since the app uses DateTime.utc() in some places, but non-utc in other places there are inconsistencies and bugs (e.g. around DST). For the purpose of this app it should be best to use DateTime.utc() everywhere, but it is difficult to enforce that (we get non-utc times from the server, for example). I'll probably create a wrapper class around DateTime to make this easier. Migration shouldn't be a big deal, I'll just have to modify DateTimeSerializer.