Dominik Dębowczyk created FLINK-39995:
-----------------------------------------

             Summary: Add ISO-8601 timestamp format with explicit timezone 
offset support
                 Key: FLINK-39995
                 URL: https://issues.apache.org/jira/browse/FLINK-39995
             Project: Flink
          Issue Type: Improvement
          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
    Affects Versions: 1.20.5, 2.2.1, 2.1.2, 1.20.4, 2.1.1, 2.2.0, 1.20.3, 
2.1.0, 1.20.2, 1.20.1, 1.20.0
            Reporter: Dominik Dębowczyk


h2. Problem

The current {{ISO-8601}} timestamp format option for {{JSON}} is misleading as 
it does not support timestamps with explicit timezone offsets (e.g., 
{{{}2026-06-25T09:15:00+00:00{}}}).

The existing {{ISO-8601}} format only handles:
 - Timestamps without timezone: {{{}yyyy-MM-ddTHH:mm:ss.s{precision{}}}}
 - Timestamps with UTC 'Z' suffix: {{yyyy-MM-ddTHH:mm:ss.s\{precision}Z}}

It cannot parse valid {{ISO-8601}} timestamps with explicit timezone offsets 
like {{{}+02:00{}}}, {{{}-05:00{}}}, etc.
h2. Solution

Add a new timestamp format option {{ISO-8601-WITH-OFFSET}} that properly 
handles timestamps with explicit timezone offsets in the format:
{{yyyy-MM-ddTHH:mm:ss.s\{precision}±HH:mm}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to