Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
API 2.21.0
-
None
Description
When doing a ValueMap.get("calendar", String.class) conversion, before SLING-8116,
ISO8601.format() was used. Now, Calendar.toInstant().toString() is used. This gives a different result, because the ISO8601 gives the correct timezone, but toInstant() gives the Zulu time.
toInstant() does the following:
public final Instant toInstant() { return Instant.ofEpochMilli(getTimeInMillis()); }
Timezones and offsets are completely ignored.
Attachments
Attachments
Issue Links
- links to