Pod expiry datetime drifting until next refresh or connection (issue#92)
This commit is contained in:
parent
51709c2af8
commit
9e4c1abd12
|
@ -240,7 +240,7 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
|
||||||
return ZonedDateTime.now()
|
return ZonedDateTime.now()
|
||||||
.plusHours(podLifeInHours.toLong())
|
.plusHours(podLifeInHours.toLong())
|
||||||
.minusMinutes(minutesSinceActivation.toLong())
|
.minusMinutes(minutesSinceActivation.toLong())
|
||||||
.plus(Duration.ofMillis(System.currentTimeMillis() - lastUpdatedSystem))
|
.minus(Duration.ofMillis(System.currentTimeMillis() - lastUpdatedSystem))
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue