From: Eileen McNaughton Date: Tue, 15 Jul 2014 04:35:48 +0000 (+1200) Subject: CRM-14986 add function comments as pointer as to why isoToDate fn may be over-used X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5d9f689864603c4027b349d4813826b0d924246f;p=civicrm-core.git CRM-14986 add function comments as pointer as to why isoToDate fn may be over-used --- 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 *