From f2aacd4304a263e32e65ce8754f0a5b06bfd9299 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 7 Mar 2024 16:11:31 +0000 Subject: [PATCH] Ignore convert to UTC if custom field is date only --- src/Plugin/views/field/CustomEntityField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/views/field/CustomEntityField.php b/src/Plugin/views/field/CustomEntityField.php index 62012e76..501c2a39 100644 --- a/src/Plugin/views/field/CustomEntityField.php +++ b/src/Plugin/views/field/CustomEntityField.php @@ -362,7 +362,7 @@ public function convertToUtc(FieldDefinitionInterface $definition, $date_value) 'id' => $custom_field_id, ]; $date_field = $this->civicrmApi->get('CustomField', $params); - if (!empty($date_field[0]['date_format']) && $date_field[0]['date_format'] === 'yy') { + if (!empty($date_field[0]['time_format'])) { $utc = FALSE; } }