Commit bcddb80d authored by Lysander Trischler's avatar Lysander Trischler

Fix GPX timezone bug in DB when adopting GPX

parent 3cbc55a0
......@@ -583,7 +583,7 @@ if __name__ == "__main__":
INSERT INTO gpx_files
(filename, exercise_id, start, end)
VALUES (%s, %s, %s, %s)
""", gpx_file.filename, exercise_id, gpx_file.start, gpx_file.end)
""", gpx_file.filename, exercise_id, gpx_file.start.astimezone(pytz.UTC), gpx_file.end.astimezone(pytz.UTC))
self.success_messages.append("GPS-Trajektorie erfolgreich der Übung hinzugefügt!")
else:
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment