Skip to content

Commit 92262ed

Browse files
authored
[Bug] Fixed view created at timezone (alexjustesen#1262)
1 parent 6b20fbc commit 92262ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Filament/Resources/ResultResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function form(Form $form): Form
5353
Forms\Components\TextInput::make('created_at')
5454
->label('Created')
5555
->afterStateHydrated(function (TextInput $component, $state) use ($settings) {
56-
$component->state(Carbon::parse($state)->format($settings->time_format ?? 'M j, Y G:i:s'));
56+
$component->state(Carbon::parse($state)->timezone(TimeZoneHelper::displayTimeZone($settings))->format($settings->time_format ?? 'M j, Y G:i:s'));
5757
})
5858
->columnSpan(2),
5959
Forms\Components\TextInput::make('download')

0 commit comments

Comments
 (0)