Skip to content

Commit

Permalink
Add timezone to created_at row (#110)
Browse files Browse the repository at this point in the history
Supports application timezone for table rows instead of system timezone.
  • Loading branch information
emildayan authored Jun 9, 2024
1 parent 38b6e6c commit 8a8a20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/ActivityResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static function table(Table $table): Table

TextColumn::make('created_at')
->label(__('filament-logger::filament-logger.resource.label.logged_at'))
->dateTime(config('filament-logger.datetime_format', 'd/m/Y H:i:s'))
->dateTime(config('filament-logger.datetime_format', 'd/m/Y H:i:s'), config('app.timezone'))
->sortable(),
])
->defaultSort('created_at', 'desc')
Expand Down

0 comments on commit 8a8a20b

Please sign in to comment.