Skip to content

Parsing fails if milliseconds are present in copyright time #42

@Flomp

Description

@Flomp

As stated in the title parsing fails with the following gpx:

hhs_77yl9msjcr.gpx.txt

The reason is the
<time>2025-04-22T19:23:27.586350</time> tag in the <metadata> section. The format is not listed in

var copyrightYearLayouts = []string{
	"2006",
	"2006Z",
	"2006-07:00",
}

and thus parsing fails. However, the value is allowed by the GPX specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions