From 5d9f689864603c4027b349d4813826b0d924246f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 15 Jul 2014 16:35:48 +1200 Subject: [PATCH] CRM-14986 add function comments as pointer as to why isoToDate fn may be over-used --- CRM/Utils/Date.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Utils/Date.php b/CRM/Utils/Date.php index 69df6f6ec4..ad424aa87b 100644 --- a/CRM/Utils/Date.php +++ b/CRM/Utils/Date.php @@ -455,6 +455,9 @@ class CRM_Utils_Date { /** * converts the date/datetime from ISO format to MySQL format + * Note that until CRM-14986/ 4.4.7 this was required whenever the pattern $dao->find(TRUE): $dao->save(); was + * used to update an object with a date field was used. The DAO now checks for a '-' in date field strings + * & runs this function if the - appears - meaning it is likely redundant in the form & BAO layers * * @param string $iso date/datetime in ISO format * -- 2.25.1