-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
From: https://github.com/jboss-logging/jboss-logmanager/pull/468
It is not possible to use rotation periods longer then DAYS, because java.time.ZonedDateTime#truncatedTo throws an exception for such periods.
java.time.temporal.UnsupportedTemporalTypeException: Unit is too large to be used for truncation
Lower dates do not seem to calculate correctly either. Hour and minute do not seem to work. Using Instant.now() gives the time in UTC which could affect, given the time zone (zone id), when something might be rotated. While the JDK itself uses Instant.now() for records, we need to validate how this works with rotation.