AndroidAPS icon indicating copy to clipboard operation
AndroidAPS copied to clipboard

Date util refactor

Open Gohtraw opened this issue 2 months ago • 1 comments

This replaces the old PRs. Added tests, corrections and improvements

The new tests are in app/aaps/shared/impl/utils/DateUtilImplTest.kt

The old test (app/aaps/core/objects/utils/DateUtilImplTest.kt) for secondsOfTheDayToMilliseconds still fails because the original function actually set the seconds to 0 before outputting ms. I created a new (more appropriately named) function minutesOfTheDayToMilliseconds which does what the old one did.

Gohtraw avatar Nov 19 '25 22:11 Gohtraw