|
6 | 6 |
|
7 | 7 | {{ \Cachet\Facades\CachetView::renderHook(\Cachet\View\RenderHook::STATUS_PAGE_INCIDENTS_BEFORE) }} |
8 | 8 | <div class="relative flex flex-col gap-5" x-data="{ forDate: new Date(@js($date)) }"> |
9 | | - <h3 class="text-xl font-semibold"><time datetime="{{ $date }}" x-text="forDate.toLocaleDateString()"></time></h3> |
| 9 | + <h3 class="text-xl font-semibold"><time datetime="{{ $date }}" x-text="forDate.toLocaleDateString(@if($appSettings->timezone !== '-')undefined, {timeZone: '{{$appSettings->timezone}}'}@endif )"></time></h3> |
10 | 10 | @forelse($incidents as $incident) |
11 | 11 | <div x-data="{ timestamp: new Date(@js($incident->timestamp)) }" class="bg-white border divide-y rounded-lg ml-9 dark:divide-zinc-700 dark:border-zinc-700 dark:bg-white/5"> |
12 | 12 | <div @class([ |
|
32 | 32 | @endauth |
33 | 33 | </div> |
34 | 34 | <span class="text-xs text-zinc-500 dark:text-zinc-400"> |
35 | | - {{ $incident->timestamp->diffForHumans() }} — <time datetime="{{ $incident->timestamp->toW3cString() }}" x-text="timestamp.toLocaleString()"></time> |
| 35 | + {{ $incident->timestamp->diffForHumans() }} — <time datetime="{{ $incident->timestamp->toW3cString() }}" x-text="timestamp.toLocaleString(@if($appSettings->timezone !== '-')undefined, {timeZone: '{{$appSettings->timezone}}'}@endif )"></time> |
36 | 36 | </span> |
37 | 37 | </div> |
38 | 38 | <div class="flex justify-start sm:justify-end"> |
|
53 | 53 | <x-cachet::incident-update-status :status="$update->status" /> |
54 | 54 | <h3 class="text-lg font-semibold">{{ $update->status->getLabel() }}</h3> |
55 | 55 | <span class="text-xs text-zinc-500 dark:text-zinc-400"> |
56 | | - {{ $update->created_at->diffForHumans() }} — <time datetime="{{ $update->created_at->toW3cString() }}" x-text="timestamp.toLocaleString()"></time> |
| 56 | + {{ $update->created_at->diffForHumans() }} — <time datetime="{{ $update->created_at->toW3cString() }}" x-text="timestamp.toLocaleString(@if($appSettings->timezone !== '-')undefined, {timeZone: '{{$appSettings->timezone}}'}@endif )"></time> |
57 | 57 | </span> |
58 | 58 | <div class="prose-sm md:prose prose-zinc dark:prose-invert prose-a:text-accent-content prose-a:underline prose-p:leading-normal">{!! $update->formattedMessage() !!}</div> |
59 | 59 | </div> |
|
62 | 62 | <x-cachet::incident-update-status :status="IncidentStatusEnum::unknown" /> |
63 | 63 |
|
64 | 64 | <span class="text-xs text-zinc-500 dark:text-zinc-400"> |
65 | | - {{ $incident->timestamp->diffForHumans() }} — <time datetime="{{ $incident->timestamp->toW3cString() }}" x-text="timestamp.toLocaleString()"></time> |
| 65 | + {{ $incident->timestamp->diffForHumans() }} — <time datetime="{{ $incident->timestamp->toW3cString() }}" x-text="timestamp.toLocaleString(@if($appSettings->timezone !== '-')undefined, {timeZone: '{{$appSettings->timezone}}'}@endif )"></time> |
66 | 66 | </span> |
67 | 67 | <div class="prose-sm md:prose prose-zinc dark:prose-invert prose-a:text-accent-content prose-a:underline prose-p:leading-normal">{!! $incident->formattedMessage() !!}</div> |
68 | 68 | </div> |
|
0 commit comments