add logging for timezones

This commit is contained in:
Andrei Vereha 2021-08-05 21:20:03 +02:00
parent 324469863b
commit 042a21d8da

View file

@ -124,7 +124,10 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
override val sameTimeZone: Boolean
get() {
val now = System.currentTimeMillis()
return TimeZone.getDefault().getOffset(now) == timeZone.getOffset(now)
val currentOffset = TimeZone.getDefault().getOffset(now)
val podOffset = timeZone.getOffset(now)
logger.debug(LTag.PUMPCOMM, "sameTimeZone currentOffset=$currentOffset podOffset=$podOffset")
return currentOffset == podOffset
}
override val bluetoothVersion: SoftwareVersion?