Update (view): Show correct timezone
This commit is contained in:
@@ -49,7 +49,7 @@ class="text-decoration-none">{{ $post->title }}</a>
|
|||||||
</p>
|
</p>
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
<small
|
<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> --}}
|
{{-- <small class="text-body-secondary">9 min read</small> --}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</small>
|
</small>
|
||||||
@endforeach
|
@endforeach
|
||||||
<small
|
<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> --}}
|
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class="text-decoration-none">
|
|||||||
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||||
</p>
|
</p>
|
||||||
<small
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user