From 126fcc9863d50f9dcae99bbf5c4d878581facf79 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Thu, 28 Aug 2025 20:36:39 +0200 Subject: [PATCH] Needs seconds here, fails for me otherwise --- application/models/Contesting_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Contesting_model.php b/application/models/Contesting_model.php index 86b04e480..52f79c716 100644 --- a/application/models/Contesting_model.php +++ b/application/models/Contesting_model.php @@ -18,7 +18,7 @@ class Contesting_model extends CI_Model { $qsoarray = explode(',', $this->security->xss_clean($qso)); $contestid = $qsoarray[2]; - $date = DateTime::createFromFormat('Y-m-d H:i', $qsoarray[0]); + $date = DateTime::createFromFormat('Y-m-d H:i:s', $qsoarray[0]); if ($date == false) $date = DateTime::createFromFormat($date_format.' H:i', $qsoarray[0]); $date = $date->format('Y-m-d H:i:s');