A date only field created with today's date is shown on the previous day.

I think it's assuming a start time of 00:00 UTC for the given date, when it should render as all day for the given date.

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.

mortona2k’s picture

The date is correct in Fullcalendar View.

I think the adjustments are made here: https://git.drupalcode.org/project/fullcalendar_view/-/blob/5.3.x/src/Fu...

mortona2k’s picture

I noticed that when the date field is rendered with the default datetime formatter, the time is 12:00.

That must be coming from this default in DateTimeComputed.

I think this is the value used for the calendar?

Instead it should be treated as an all day event on the current date.

These issues seem related:
DateTimeComputed should be resilient to full datetime strings regardless storage format

Consider making "date only" a separate @DataType

mortona2k’s picture

Status: Active » Closed (duplicate)
Related issues: +#3575094: Datetime field not showing time

This was a bug caused by the related issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.