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
1 changed files with 1 additions and 1 deletions
|
@ -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