jsonb-api icon indicating copy to clipboard operation
jsonb-api copied to clipboard

TimeZone serialization

Open martijndwars opened this issue 5 years ago • 0 comments

From the JSON-B specification:

The serialization format of java.util.TimeZone and SimpleTimeZone is NormalizedCustomID as specified in java.util.TimeZone.

The NormalizedCustomID format is defined in the JavaDoc for TimeZone. A valid normalized custom ID is, for example, GMT+01:00. The test DatesMappingTest#testLongTimeZoneMapping serializes TimeZone.getTimeZone("America/Los_Angeles") and expects "America/Los_Angeles". However, this is not a valid NormalizedCustomID.

martijndwars avatar Mar 14 '20 18:03 martijndwars