Skip to content

ISO-8601 change prevents parsing negative timestamps (dates before 1970) #5729

@thomaswoeckinger

Description

@thomaswoeckinger

Search before asking

  • I searched in the issues and found nothing similar.

Describe the bug

Due to changes of #5429 a negative timestamp, e.g. -1383043669935, would be treated as ISO8601in method looksLikeISO8601 of StdDateFormat.
In my opinion the given string must not be treated as ISO-8601 if it consist of a - and only digits.

Version Information

2.21.1

Reproduction

Create a negative timestamp (12.5.1926)
Try parsing it as Date

Expected behavior

It should be possible to parse negative timestamps

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions