Merge pull request #113 from vanelsberg/FixPodExpires
Pod expiry datetime drifting until next refresh or connection (issue#92)
This commit is contained in:
commit
3432dcf85f
|
@ -240,7 +240,7 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
|
|||
return ZonedDateTime.now()
|
||||
.plusHours(podLifeInHours.toLong())
|
||||
.minusMinutes(minutesSinceActivation.toLong())
|
||||
.plus(Duration.ofMillis(System.currentTimeMillis() - lastUpdatedSystem))
|
||||
.minus(Duration.ofMillis(System.currentTimeMillis() - lastUpdatedSystem))
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue