From bcd7c7f746f7192b38d27e3b6639235909661c08 Mon Sep 17 00:00:00 2001 From: AiAe Date: Sun, 27 Oct 2024 18:03:43 +0200 Subject: [PATCH] Fix timezone popup --- resources/views/components/timestamp.blade.php | 2 +- resources/views/web/layout/base.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/timestamp.blade.php b/resources/views/components/timestamp.blade.php index f761672..017e979 100644 --- a/resources/views/components/timestamp.blade.php +++ b/resources/views/components/timestamp.blade.php @@ -8,7 +8,7 @@ @endif - @if($loggedUser && $loggedUser->timezone_offset != null) + @if($loggedUser && $loggedUser->timezone_offset !== null) {{ $loggedUser->convertTime($timestamp) }} (UTC{{ format_timezone_offset($loggedUser->timezone_offset) }}) @else {{ $timestamp }} diff --git a/resources/views/web/layout/base.blade.php b/resources/views/web/layout/base.blade.php index 358a087..c441848 100644 --- a/resources/views/web/layout/base.blade.php +++ b/resources/views/web/layout/base.blade.php @@ -27,7 +27,7 @@ @stack('modals') @auth() - @if(empty($loggedUser->timezone_offset)) + @if($loggedUser->timezone_offset === null) @include('web.modals.timezone') @endif @endauth