Check/Test/Fix timezone handling against gpx-files #1

Open
opened 2020-12-25 20:13:56 +01:00 by Commander1024 · 2 comments

I had problems matching timezone_aware gpx tracks to images, that were taken in the local timezone of the foreign country.

Have to create/fake testdata first, though.

I had problems matching timezone_aware gpx tracks to images, that were taken in the local timezone of the foreign country. Have to create/fake testdata first, though.
Commander1024 self-assigned this 2020-12-25 20:13:57 +01:00
Author
Owner

Maybe, gpx files aren't even timezone-aware, but astimezone() is definitively the wrong pytz function make naive times tz-aware. Have to use localize() instead.

Maybe, gpx files aren't even timezone-aware, but astimezone() is definitively the wrong pytz function make naive times tz-aware. Have to use localize() instead.
Author
Owner

Probably fixed timezone issue in 3642d64505. Needs proper testing, though. Acutally all timezones are localtime, but gpxpy seems to assume utc, which caused the offset in the first place.

Probably fixed timezone issue in 3642d64505. Needs proper testing, though. Acutally all timezones are localtime, but gpxpy seems to assume utc, which caused the offset in the first place.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Commander1024/radiation-tagger#1
No description provided.