Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lyse
kraftwerk
Commits
bcddb80d
Commit
bcddb80d
authored
Sep 13, 2012
by
Lysander Trischler
Browse files
Fix GPX timezone bug in DB when adopting GPX
parent
3cbc55a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
kraftwerk.py
View file @
bcddb80d
...
...
@@ -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
:
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment