From: demeritcowboy Date: Tue, 21 Nov 2023 01:18:10 +0000 (-0500) Subject: bring back time field X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7ce972118977fe3b21a84d15e6b9f2f732593dc9;p=civicrm-core.git bring back time field --- diff --git a/CRM/Utils/Date.php b/CRM/Utils/Date.php index 8fcf869072..4501e3d0e1 100644 --- a/CRM/Utils/Date.php +++ b/CRM/Utils/Date.php @@ -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); } }