'created' time to appear in user's defined tz

This commit is contained in:
2023-03-23 19:53:38 -04:00
parent ed9f7864e8
commit 3a3fd2da9a
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
{% for task in tasks %}
{% set createdTime = datetime.fromtimestamp(task.created_timestamp) %}
{% set createdTime = datetime.strptime(str(createdTime), '%Y-%m-%d %H:%M:%S') %}
{% set createdTime = createdTime.astimezone(ZoneInfo(current_user.timezone)) %}
<div>
<a href="/task/{{ task.id }}">
<p><b>{{ task.title }}</b> </p>