From d27174acf4b2e7a932cdbc2d33559b6ce6bf810e Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 11 Jul 2022 14:59:48 +0200 Subject: 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. --- fietsboek/views/edit.py | 1 - 1 file changed, 1 deletion(-) 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) -- cgit v1.2.3