Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

UI executions with TZ

ayntk-ai7b4182352d9f
diff --git a/resources/views/livewire/project/shared/scheduled-task/executions.blade.php b/resources/views/livewire/project/shared/scheduled-task/executions.blade.php
index cf7a591d77..1129b4b119 100644
--- a/resources/views/livewire/project/shared/scheduled-task/executions.blade.php
+++ b/resources/views/livewire/project/shared/scheduled-task/executions.blade.php
@@ -25,21 +25,7 @@
@endif
<div>Status: {{ data_get($execution, 'status') }}</div>
<div>Started At:
- @php
- $createdAt = data_get($execution, 'created_at', now());
- $serverTimezone = $this->getServerTimezone();
- ray('Created At:', $createdAt, 'Server Timezone:', $serverTimezone);
-
- $date = new DateTime($createdAt);
- if ($serverTimezone) {
- try {
- $date->setTimezone(new DateTimeZone($serverTimezone));
- } catch (\Exception $e) {
- ray('Invalid timezone:', $serverTimezone);
- }
- }
- echo $date->format('Y-m-d H:i:s T');
- @endphp
+ {{ $this->formatDateInServerTimezone(data_get($execution, 'created_at', now())) }}
</div>
</a>
@empty