From 3d995d647af4d2255496c53ccbb416a15bef5796 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Thu, 24 Oct 2024 10:40:32 -0700 Subject: [PATCH] Format 'Scheduled At' in task table according to user's TZ --- .../controllers/media_items/media_item_html/show.html.heex | 2 +- .../controllers/sources/source_html/show.html.heex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex b/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex index e2442c6..1bfad2d 100644 --- a/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex +++ b/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex @@ -70,7 +70,7 @@ <%= task.job.state %> <:col :let={task} label="Scheduled At"> - <%= Calendar.strftime(task.job.scheduled_at, "%y-%m-%d %I:%M:%S %p %Z") %> + <.datetime_in_zone datetime={task.job.scheduled_at} format="%Y-%m-%d %H:%M:%S %Z" /> <% else %> diff --git a/lib/pinchflat_web/controllers/sources/source_html/show.html.heex b/lib/pinchflat_web/controllers/sources/source_html/show.html.heex index 26fdc96..0041bb7 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/show.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/show.html.heex @@ -67,7 +67,7 @@ <%= task.job.state %> <:col :let={task} label="Scheduled At"> - <%= Calendar.strftime(task.job.scheduled_at, "%y-%m-%d %I:%M:%S %p %Z") %> + <.datetime_in_zone datetime={task.job.scheduled_at} format="%Y-%m-%d %H:%M:%S %Z" /> <% else %>