From 6e72904a67047bcf3a22c007b2689d2e2e5be11b Mon Sep 17 00:00:00 2001 From: david62311 Date: Fri, 7 Dec 2018 19:16:33 -0500 Subject: [PATCH] blank item page issue fix Having it as $raw_date was causing a blank item.php and generate a parse time error. --- includes/Date.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Date.php b/includes/Date.php index 0bebf5670..5c3430e9b 100644 --- a/includes/Date.php +++ b/includes/Date.php @@ -83,10 +83,10 @@ public function convertToUTC($raw_date) public function formatDate($raw_date, $format = false, $UTC_input = true) { if ($UTC_input) { - $datetime = new DateTime($raw_date, $this->UTCtimezone); + $datetime = new DateTime('now', $this->UTCtimezone); $datetime->setTimezone($this->timezone); } else { - $datetime = new DateTime($raw_date, $this->timezone); + $datetime = new DateTime('now', $this->timezone); } if (!$format) { return $datetime->format($this->defaultformat);