When I try to parse this file, I get nil in the track points.
After investigation I figured that the problem is with the dateFormat string in the DateFormatter+Extensions file.
When I change it to be "yyyy-MM-dd'T'HH:mm:ssZ" instead of "yyyy-MM-dd'T'HH:mm:ss'Z'" it works perfectly.
Hello, It is me again :) Thank you so much for this lovely open source!
I have an issue with parsing my GPX files that includes time zone in the track time. Example :
`
When I try to parse this file, I get nil in the track points. After investigation I figured that the problem is with the dateFormat string in the DateFormatter+Extensions file. When I change it to be
"yyyy-MM-dd'T'HH:mm:ssZ"
instead of"yyyy-MM-dd'T'HH:mm:ss'Z'"
it works perfectly.Reference for this fix: https://stackoverflow.com/questions/41907419/ios-swift-3-convert-yyyy-mm-ddthhmmssz-format-string-to-date-object
I fixed it in my forked repo and i wonder if this is a valid fix, you can see it here: https://github.com/RideBeeline/GpxKit/compare/master...Applitom:master
Please let me know if you think i can submit PR for this fix or if you think of other solution.
Thanks!