Skip to content

date gives wrong RFC 3339 date time format #9655

@hadmut

Description

@hadmut

Hi,

I just stumbled accross the problem that the Go runtime library does not accept the output of

date --rfc-3339=seconds

2025-12-14 01:03:46+02:00

on Kubuntu 25.10, as RFC3339 time format with it's parser. I first thought it was an error in the Go runtime library, but in fact

https://datatracker.ietf.org/doc/html/rfc3339#section-5.6

defines

date-time = full-date "T" full-time

i.e. a T instead of a space between Date and Time. So Go is right, this is not correct.

regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions