From 8ceebe7102a4a2bddb082b66fcb400c1f6b9d785 Mon Sep 17 00:00:00 2001 From: ottorei Date: Sun, 26 Sep 2021 17:08:11 +0300 Subject: [PATCH] Fix outages table timezone (#13274) --- app/Http/Controllers/Table/OutagesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Table/OutagesController.php b/app/Http/Controllers/Table/OutagesController.php index 3dfdd806d6..9c09f0a8a1 100644 --- a/app/Http/Controllers/Table/OutagesController.php +++ b/app/Http/Controllers/Table/OutagesController.php @@ -113,7 +113,7 @@ class OutagesController extends TableController } $output = ""; - $output .= (new Carbon($timestamp))->format(Config::get('dateformat.compact')); + $output .= (Carbon::createFromTimestamp($timestamp))->format(Config::get('dateformat.compact')); // Convert epoch to local time $output .= ''; return $output;