From 89ba221765b0634ce057fcfe562a26c1187ffac7 Mon Sep 17 00:00:00 2001 From: itsupportcmsukorg Date: Fri, 7 Apr 2017 03:48:15 +0100 Subject: [PATCH] fix upload hour so it's 24hr instead of always AM (#3480) correct an error where logUpload was trying to save 12-hr time to a 24-hr field, e.g. 15:00 (3pm) was becoming 3:00 (3am) --- app/Models/Loggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Loggable.php b/app/Models/Loggable.php index faf53d686c..ecd200c87e 100644 --- a/app/Models/Loggable.php +++ b/app/Models/Loggable.php @@ -157,7 +157,7 @@ trait Loggable $log->user_id = Auth::user()->id; $log->note = $note; $log->target_id = null; - $log->created_at = date("Y-m-d h:i:s"); + $log->created_at = date("Y-m-d H:i:s"); $log->filename = $filename; $log->logaction('uploaded');