-
Bug
-
Resolution: Fixed
-
Critical
-
4.3.0, 4.4.0
-
None
-
None
-
4.4 M3
Using dates before a given date (depending on the time-zone) in a content launch errors.
During writing, a LocalDate value is converted into a Calendar value. If the date is anterior to a specific date, a time offset is applied to the date, adding minutes and seconds
During reading, the calendar value is checked to verify it is a DateTime, and launch an error for any calendar that have hours, minutes or seconds.
We should be able to write dates prior to 1900 and still be able to read them without error
From the ISO8601 norm :
So we should not try to store in JCR invalid ISO-8601 date times.
Practically, this means that we should treat every LocalDate as 00:00:00 UTC and that we should change every ZonedDateTime's offset to UTC before storage