aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-08-01 03:06:04 -0700
committerFuwn <[email protected]>2023-08-01 03:06:04 -0700
commit71bb94427221eb2efd16cce8ca7da6b4072ec7f1 (patch)
tree0fcad2802dfde9079225dfe200ea144034be9255
parentfix(anime): fix plural countdown (diff)
downloadold.due.moe-71bb94427221eb2efd16cce8ca7da6b4072ec7f1.tar.xz
old.due.moe-71bb94427221eb2efd16cce8ca7da6b4072ec7f1.zip
fix(index): always use utc for timezone
-rw-r--r--src/due/routes/index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/due/routes/index.py b/src/due/routes/index.py
index 226319f..5694314 100644
--- a/src/due/routes/index.py
+++ b/src/due/routes/index.py
@@ -129,7 +129,7 @@ def home(username):
page(
f"""<a href="/auth/logout">Log out from AniList ({name})</a>
{"<p></p><p>You don't have any new activity statuses from the past day! Create one to keep your streak!</p>" if datetime.datetime.fromtimestamp(last_activity(user_name_to_id(name))).date()
- != datetime.date.today() else "<p></p>"}""",
+ != datetime.datetime.now(datetime.timezone.utc).date() else "<p></p>"}""",
f"""<a href=\"/?toggle_missing{'&show_manga' if request.args.get('show_manga') is not None else ''}\">{'Hide' if request.cookies.get('show_missing') else 'Show'} unresolved</a><p></p><details open>
<summary>Anime [{anime_length}] <small style="opacity: 50%">{round(anime_time, 2)}s</small></summary>
{anime_html}