-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import error with GPX (and KML) files from "Zeopoxa cycling" #249
Comments
The datetimes in the GPX file don't have time zone information or Z if they use UTC. If you add Z to all datetime in the file the it's imported correctly. OpenTracks expect datetime as defined at https://www.w3.org/TR/xmlschema-2/#dateTime |
@rgmf Thanks for the quick analysis. I introduced this behavior in 32070a0. But I did not check what the actual KML/GPX specification says about this.... |
According to https://www.topografix.com/gpx_manual.asp#time "Creation/modification timestamp for element. Date and time in are in Univeral Coordinated Time (UTC), not local time! Conforms to ISO 8601 specification for date/time representation. Fractional seconds are allowed for millisecond timing in tracklogs." In OpenTracks, I think it's okay or Am I missing something? |
It appears that GPX files correctly require the "Z" suffix for UTC (which Zeopoxa Cycling erroneously excluded). Closing this, but feel free to reopen if you want to be lenient with this parsing case. |
@benjif You are right, we really can be lenient in this case. |
Describe the bug
An error occurs when I try to import a GPX (or KML) file from the
Zeopoxa Cycling
app.Presumably the KML import error is related to #245 (Zeopoxa's KML exports use
LineString
). I'm not sure what element causes the error with GPX files.To Reproduce
Zeopoxa Cycling
(I've included samples).Here is a sample GPX file
Here is a sample KML file
Technical information
The text was updated successfully, but these errors were encountered: