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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
UI fix
ayntk-aie3b988424711
diff --git a/app/Livewire/Project/Shared/ScheduledTask/Executions.php b/app/Livewire/Project/Shared/ScheduledTask/Executions.phpindex 7a2e14e89c..3ee053e3ee 100644--- a/app/Livewire/Project/Shared/ScheduledTask/Executions.php+++ b/app/Livewire/Project/Shared/ScheduledTask/Executions.php@@ -7,8 +7,8 @@ use Livewire\Component;class Executions extends Component{public $executions = [];-public $selectedKey;+ public $task;public function getListeners(){@@ -26,4 +26,12 @@ class Executions extends Component}$this->selectedKey = $key;}-}++ public function getServerTimezone()+ {+ $server = data_get($this, 'destination.server');+ $serverTimezone = $server->settings->server_timezone;+ ray('Server Timezone:', $serverTimezone);+ return $serverTimezone;+ }+}\ No newline at end of filediff --git a/resources/views/livewire/project/shared/scheduled-task/executions.blade.php b/resources/views/livewire/project/shared/scheduled-task/executions.blade.phpindex afbf1ea939..cf7a591d77 100644--- a/resources/views/livewire/project/shared/scheduled-task/executions.blade.php+++ b/resources/views/livewire/project/shared/scheduled-task/executions.blade.php@@ -24,9 +24,25 @@</div>@endif<div>Status: {{ data_get($execution, 'status') }}</div>- <div>Started At: {{ data_get($execution, 'created_at') }}</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+ </div></a>@empty<div>No executions found.</div>@endforelse-</div>+</div>\ No newline at end of filediff --git a/resources/views/livewire/project/shared/scheduled-task/show.blade.php b/resources/views/livewire/project/shared/scheduled-task/show.blade.phpindex b69463a0ef..d448000ca5 100644--- a/resources/views/livewire/project/shared/scheduled-task/show.blade.php+++ b/resources/views/livewire/project/shared/scheduled-task/show.blade.php@@ -42,6 +42,6 @@<div class="pt-4"><h3 class="py-4">Recent executions <span class="text-xs text-neutral-500">(click to check output)</span></h3>- <livewire:project.shared.scheduled-task.executions key="{{ $task->id }}" selectedKey="" :executions="$task->executions->take(-20)" />+ <livewire:project.shared.scheduled-task.executions :task="$task" key="{{ $task->id }}" selectedKey="" :executions="$task->executions->take(-20)" /></div>-</div>+</div>\ No newline at end of file