Skip to content

Instant::toISOString() is not RFC 3339 compliant #110

@JanTvrdik

Description

@JanTvrdik

Instant::toISOString() / ZonedDateTime::toISOString returns value that is not RFC 3339 compliant, because it will omit seconds, when its value is zero.

This is causing portability issues, for example, such value is not accepted by java.time.Instant.parse.

Java sandbox

RFC 3339 format description

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions