-
Notifications
You must be signed in to change notification settings - Fork 224
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
remove timezone part from date string #77
Conversation
1 similar comment
Yes, that makes sense, thanks! There are just a few changes I'd add here. First, what if instead of And, another thing, add a test in
|
Cool, I'll take a look at adding the test as well. Not sure if checking for digits without leading zeros, as this is not correct according to https://www.w3.org/TR/xmlschema-2/#isoformats, which I think is what GPX is based. If we do want support it, I think only a regex could help us, but that might be a bit slow. |
1 similar comment
This should be ready for merging now. Don't know if the regular expression affects performance a lot, but at least it should only be invoked when the time string is shorter than the expected length of 19. With this PR it works for the gpx files produced by the very useful gps tracking app LD-log. |
Merged, thanks! |
passed unit tests on python2.7 (I don't have 3 currently installed)