From b0c5cb3f46957b9f0c82c18e035db05bcd45eb79 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 12 Jan 2021 18:40:18 +1100 Subject: [PATCH] Fix for DateTime --- app/Utils/Traits/MakesDates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Traits/MakesDates.php b/app/Utils/Traits/MakesDates.php index 0c730b22de3d..6a908eb3543c 100644 --- a/app/Utils/Traits/MakesDates.php +++ b/app/Utils/Traits/MakesDates.php @@ -95,7 +95,7 @@ trait MakesDates private function convertToDateObject($date) { - $dt = DateTime($date); + $dt = new DateTime($date); $dt->setTimezone(new DateTimeZone('UTC')); return $dt; }