Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
most of the users don't want to enter time values with seconds and end times like 23:59:59, so it would be nice if the end-time 00:00 (next day) would not become multi-day.
Any idea where I can change the code?
Thanks!
Comments
Comment #1
root66 CreditAttribution: root66 commentedI've found a way:
In "function explode_values($event)" (calendar_plugin_row.inc) on line 576 change
this:
to:
And the last day event beginning at 0:00 and ending at the same time 0:00 will not be added.
Comment #2
sassafrass CreditAttribution: sassafrass commentedI think this might work, except that in the case where
$entity->calendar_start == $entity->calendar_end
we still need tounset($entity);
Therefore, I would propose replacing lines 571 through line 581
with
Comment #3
Neslee Canil Pinto