add logging for timezones
This commit is contained in:
parent
324469863b
commit
042a21d8da
|
@ -124,7 +124,10 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
|
||||||
override val sameTimeZone: Boolean
|
override val sameTimeZone: Boolean
|
||||||
get() {
|
get() {
|
||||||
val now = System.currentTimeMillis()
|
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?
|
override val bluetoothVersion: SoftwareVersion?
|
||||||
|
|
Loading…
Reference in a new issue