-
Notifications
You must be signed in to change notification settings - Fork 223
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
timezone lost in <time> fields when cloning/copying parsed GPX file #190
Labels
Comments
ekspla
added a commit
to ekspla/gpxpy
that referenced
this issue
Mar 23, 2021
Issue tkrajina#182 Support for TZ unaware timestamps. Issue tkrajina#190 Support for cloned GPX (using deepcopy).
This was referenced Mar 23, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When parsing a GPX file that doesn't use UTC but TZ aware timestamps, the timestamp is lost when using the clone method. The cloned gpx object now shows the same time as before, but with the wrong timezone. "2018-04-04T10:36:53-0600" now becomes "2018-04-04T10:36:53Z"
The following illustrates the problem:
Using a GPX file with TZ aware timestamps:
python 3.7.6 and Gpxpy 1.3.5
The text was updated successfully, but these errors were encountered: