Skip to content
Snippets Groups Projects
Commit f4f501c9 authored by Martin Mareš's avatar Martin Mareš
Browse files

Batch-editing: Fix time zone

parent 62605063
Branches
No related tags found
No related merge requests found
......@@ -151,7 +151,10 @@ def admin_topics(sident: str, cident: str):
if batch_form.set_deadline.data:
for t in selected_topics:
t.deadline = batch_form.deadline.data
deadline = batch_form.deadline.data
if deadline is not None:
deadline = deadline.astimezone(tz=dateutil.tz.UTC)
t.deadline = deadline
app.logger.info(f"Edited topic: tid={t.tid} by_uid={g.uid}")
if selected_topics:
sess.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment