store normalized TimeZone

This commit is contained in:
Andrei Vereha 2021-08-10 20:38:23 +02:00
parent cca9324eff
commit e318a1a23d

View file

@ -117,7 +117,7 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
override var timeZone: TimeZone
get() = TimeZone.getTimeZone(podState.timeZone)
set(tz) {
podState.timeZone = tz.getDisplayName(true, TimeZone.SHORT)
podState.timeZone = tz.toZoneId().normalized().id
store()
}