From 77ca21d66da748d8746cc3ab39766ced9250d1dc Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 19 May 2016 17:54:32 -0700 Subject: [PATCH] CRM/Core/BAO/File.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis` --- CRM/Core/BAO/File.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/File.php b/CRM/Core/BAO/File.php index 7104b416a9..9514b2044b 100644 --- a/CRM/Core/BAO/File.php +++ b/CRM/Core/BAO/File.php @@ -145,7 +145,7 @@ class CRM_Core_BAO_File extends CRM_Core_DAO_File { $fileDAO->uri = $filename; $fileDAO->mime_type = $mimeType; $fileDAO->file_type_id = $fileTypeID; - $fileDAO->upload_date = date('Ymdhis'); + $fileDAO->upload_date = date('YmdHis'); $fileDAO->save(); // need to add/update civicrm_entity_file @@ -532,7 +532,7 @@ AND CEF.entity_id = %2"; $numAttachments = Civi::settings()->get('max_attachments'); - $now = date('Ymdhis'); + $now = date('YmdHis'); // setup all attachments for ($i = 1; $i <= $numAttachments; $i++) { -- 2.25.1