Skip to content

Commit

Permalink
Ignore convert to UTC if custom field is date only
Browse files Browse the repository at this point in the history
  • Loading branch information
pradpnayak committed Mar 7, 2024
1 parent 963299e commit f2aacd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/views/field/CustomEntityField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f2aacd4

Please sign in to comment.