fix для работы с vmangos

This commit is contained in:
2026-10-04 13:02:12 +04:00
parent 028aa9e35d
commit 5952e966d2
18 changed files with 400 additions and 163 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Support;
use Carbon\CarbonImmutable;
class VMangosTime
{
public static function format(?string $value): string
{
// MySQL sessions for vMaNGOS read TIMESTAMP columns in UTC.
return $value && ! str_starts_with($value, '0000-00-00')
? CarbonImmutable::parse($value, 'UTC')->setTimezone(config('moonwell.timezone', 'UTC'))->format('d.m.Y H:i')
: '—';
}
}