add logging for timezones
This commit is contained in:
parent
324469863b
commit
042a21d8da
1 changed files with 4 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue