From 678fe3a1ec9d4a3f7ec5a337eb0b29a9cb3b75c4 Mon Sep 17 00:00:00 2001
From: Charles T
Date: Sat, 5 Aug 2023 10:02:49 +0800
Subject: [PATCH] Update (view): Show correct timezone
---
resources/views/front/partials/featured_post_card.blade.php | 2 +-
resources/views/front/partials/post_list_card.blade.php | 2 +-
resources/views/front/partials/small_list_card.blade.php | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/resources/views/front/partials/featured_post_card.blade.php b/resources/views/front/partials/featured_post_card.blade.php
index 59c6e60..7fbf0a0 100644
--- a/resources/views/front/partials/featured_post_card.blade.php
+++ b/resources/views/front/partials/featured_post_card.blade.php
@@ -49,7 +49,7 @@ class="text-decoration-none">{{ $post->title }}
{{ $post->publish_date->format('j F Y') }}
+ class="text-body-secondary">{{ $post->publish_date->timezone(session()->get('timezone'))->format('j F Y') }}
{{-- 9 min read --}}
diff --git a/resources/views/front/partials/post_list_card.blade.php b/resources/views/front/partials/post_list_card.blade.php
index 9143862..2edc6ba 100644
--- a/resources/views/front/partials/post_list_card.blade.php
+++ b/resources/views/front/partials/post_list_card.blade.php
@@ -24,7 +24,7 @@
@endforeach
{{ $post->publish_date->format('j F Y') }}
+ class="text-body-secondary ms-2">{{ $post->publish_date->timezone(session()->get('timezone'))->format('j F Y') }}
{{-- 3 min read --}}
diff --git a/resources/views/front/partials/small_list_card.blade.php b/resources/views/front/partials/small_list_card.blade.php
index 8fb69f2..d0be8eb 100644
--- a/resources/views/front/partials/small_list_card.blade.php
+++ b/resources/views/front/partials/small_list_card.blade.php
@@ -40,7 +40,7 @@ class="text-decoration-none">
{{-- 3 min read --}}
{{ $post->publish_date->format('j F Y') }}
+ class="text-body-secondary">{{ $post->publish_date->timezone(session()->get('timezone'))->format('j F Y') }}