Multiple User Timezones

Jun 7, 2022
Craig Smith
FAQ, Form builder, Table builder, Admin panel

If you need to use multiple timezones (or use UTC for storage and a different one for display) add the following to your AppServiceProvider:

use Filament\Forms\Components\DateTimePicker;
use Filament\Tables\Columns\TextColumn;
public function boot()
DateTimePicker::configureUsing(fn (DateTimePicker $component) => $component->timezone(config('app.user_timezone')));
TextColumn::configureUsing(fn (TextColumn $column) => $column->timezone(config('app.user_timezone')));

No comments yet…