Update (view): Show correct timezone

This commit is contained in:
2023-08-05 10:02:49 +08:00
parent 500714d7bf
commit 678fe3a1ec
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class="text-decoration-none">{{ $post->title }}</a>
</p>
<div class="d-flex justify-content-between align-items-center">
<small
class="text-body-secondary">{{ $post->publish_date->format('j F Y') }}</small>
class="text-body-secondary">{{ $post->publish_date->timezone(session()->get('timezone'))->format('j F Y') }}</small>
{{-- <small class="text-body-secondary">9 min read</small> --}}
</div>
</div>

View File

@@ -24,7 +24,7 @@
</small>
@endforeach
<small
class="text-body-secondary ms-2">{{ $post->publish_date->format('j F Y') }}</small>
class="text-body-secondary ms-2">{{ $post->publish_date->timezone(session()->get('timezone'))->format('j F Y') }}</small>
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
</p>

View File

@@ -40,7 +40,7 @@ class="text-decoration-none">
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
</p>
<small
class="text-body-secondary">{{ $post->publish_date->format('j F Y') }}</small>
class="text-body-secondary">{{ $post->publish_date->timezone(session()->get('timezone'))->format('j F Y') }}</small>
</div>
</div>
</div>