mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 02:54:45 +02:00

* force app timezone to be UTC * remove asDateTime overwrite * add custom column to display dates in user timezone * use `APP_TIMEZONE` as default timezone for new users * revert accidental pinting
16 lines
293 B
PHP
16 lines
293 B
PHP
<?php
|
|
|
|
namespace App\Tables\Columns;
|
|
|
|
use Filament\Tables\Columns\TextColumn;
|
|
|
|
class DateTimeColumn extends TextColumn
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->dateTime(timezone: auth()->user()?->timezone ?? config('app.timezone', 'UTC'));
|
|
}
|
|
}
|