Find LocalDateTime.now() / Instant.now() calls
ProprietaryLocalDateTime.now() (and its Instant/LocalDate/ZonedDateTime siblings) read the system clock implicitly. Inject a Clock and use the overload LocalDateTime.now(clock) so tests can advance time deterministically.
org. openrewrite. kotlin. interop. FindLocalDateTimeNow$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindLocalDateTimeNow$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.