Update (view): Show correct timezone
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user