bring back time field
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 21 Nov 2023 01:18:10 +0000 (20:18 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 21 Nov 2023 01:18:10 +0000 (20:18 -0500)
CRM/Utils/Date.php

index 8fcf8690726e01f046b588b3246309e445e2f745..4501e3d0e171f2ca6ca6cb3f9c35897195305572 100644 (file)
@@ -1987,7 +1987,7 @@ class CRM_Utils_Date {
           $field['smarty_view_format'] = $dateAttributes['smarty_view_format'];
         }
         $field['datepicker']['extra'] = self::getDatePickerExtra($field);
-        $field['datepicker']['extra']['time'] = $fieldMetaData['type'] == CRM_Utils_Type::T_TIMESTAMP;
+        $field['datepicker']['extra']['time'] = $fieldMetaData['type'] == CRM_Utils_Type::T_TIMESTAMP || $fieldMetaData['type'] == (CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME);
         $field['datepicker']['attributes'] = self::getDatePickerAttributes($field);
       }
     }