A core datetime field, with date and time appears the same as a full day date with no time.
Fullcalendar datetime

Datetime range fields show the time at the start of the display.

Fullcalendar datetime range

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mortona2k created an issue. See original summary.

debdeep.mukhopadhyay’s picture

I am working on this.

debdeep.mukhopadhyay’s picture

Hi @mortona2k
I was able to reproduce the issue with a single DateTime field.

When no end date is present, the event was treated as all-day, so the time was not displayed. I updated the logic to check the start time before marking it as all-day.

Now timed events display correctly, and date range fields remain unaffected.

Please review it.

mortona2k’s picture

Thanks for the fast turnaround.

I see times in the events now. However, the display has changed?

Before:
Calendar time missing before patch

After:
Calendar time missing after patch

debdeep.mukhopadhyay’s picture

Hi @mortona2k,
Thank you for reviewing my MR,

The change in display is happening because events with a start time are no longer treated as all-day events. As a result, FullCalendar renders them using its default timed-event style in month view, which differs from the previous block-style appearance.

Please let me know which behavior you would prefer:

1. Keep the previous block-style rendering (without visible time), or

2. Keep the correct time display with FullCalendar’s default timed-event rendering.

I’m happy to adjust the implementation based on your preference.

mortona2k’s picture

I see the styling difference comes from fullcalendar defaults: https://fullcalendar.io/demos

I added the ability to toggle the event time in the month display: https://www.drupal.org/project/fullcalendar/issues/3576095

Let's keep it as is and I can customize further in my theme.

mortona2k’s picture

Status: Active » Needs review

Now date only fields are not considered all day events and shown on the previous day, at a weird time.

I created this issue, but it can be closed as a duplicate of this one, as it is a bug coming from the current MR.
https://www.drupal.org/project/fullcalendar/issues/3576321

There are some notes in there worth considering, especially that DateTimeComputed assumes a time of 12pm for date only values.

To fix, I added T00:00:00 to date values so they are considered as all day events again.