diff --git a/app/Filament/Resources/Events/EventResource.php b/app/Filament/Resources/Events/EventResource.php index ed1469e9..2fa0f7b7 100644 --- a/app/Filament/Resources/Events/EventResource.php +++ b/app/Filament/Resources/Events/EventResource.php @@ -68,7 +68,7 @@ class EventResource extends Resource ->where('has_markets', 1) ->where('sport_id', auth()->user()->sport_id); - $query->where('starttime', '>=', Carbon::now()); + $query->where('starttime', '>=', Carbon::now()->timezone('CET')); // if (config('env.app_env') == 'production') { // $query->where('starttime', '>=', Carbon::now()->subHour()); diff --git a/app/Filament/Tables/Columns/ColumnStarttime.php b/app/Filament/Tables/Columns/ColumnStarttime.php index 7dd43913..03d386aa 100644 --- a/app/Filament/Tables/Columns/ColumnStarttime.php +++ b/app/Filament/Tables/Columns/ColumnStarttime.php @@ -45,10 +45,10 @@ class ColumnStarttime extends Column implements HasEmbeddedView } else { $color = 'fi-color fi-color-warning fi-text-color-600 dark:fi-text-color-400 fi-ta-text-item'; } - $starttime = Carbon::createFromTimestamp(strtotime($client_starttime)); + $starttime = Carbon::createFromTimestamp(strtotime($client_starttime))->timezone('CET'); } else { $color = 'fi-color fi-color-info fi-text-color-600 dark:fi-text-color-400 fi-ta-text-item'; - $starttime = Carbon::createFromTimestamp(strtotime($txodds_starttime)); + $starttime = Carbon::createFromTimestamp(strtotime($txodds_starttime))->timezone('CET'); } ob_start(); ?>