aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-11 14:59:48 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-11 14:59:48 +0200
commitd27174acf4b2e7a932cdbc2d33559b6ce6bf810e (patch)
tree03ff93bef7663ed452103890a694c51843ca738b
parent187fcd6b5a642931fb4584c0ba8099df5b96470d (diff)
downloadfietsboek-d27174acf4b2e7a932cdbc2d33559b6ce6bf810e.tar.gz
fietsboek-d27174acf4b2e7a932cdbc2d33559b6ce6bf810e.tar.bz2
fietsboek-d27174acf4b2e7a932cdbc2d33559b6ce6bf810e.zip
don't overwrite date after editing
A few lines above the change, we set track.date to a timezone-aware date. We shouldn't overwrite it with a naive datetime right after.
-rw-r--r--fietsboek/views/edit.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/fietsboek/views/edit.py b/fietsboek/views/edit.py
index 91bac60..aabbcbc 100644
--- a/fietsboek/views/edit.py
+++ b/fietsboek/views/edit.py
@@ -57,7 +57,6 @@ def do_edit(request):
track.title = request.params["title"]
track.visibility = Visibility[request.params["visibility"]]
track.description = request.params["description"]
- track.date = datetime.datetime.fromisoformat(request.params["date"])
track.badges = badges
tags = request.params.getall("tag[]")
track.sync_tags(tags)