DateRange field with Date Only and Date Time config displays end date one day short

Created on 6 February 2019, over 6 years ago
Updated 5 June 2025, 1 day ago

I'm using FullCalendar v3.10.0 library with 8.x-1.0-alpha2 release of this module. I'm working on a calendar view to display course events with DateRange filed.

Steps to reproduce:

    For Date Only Config:
  1. Create one DateRange field in content type of your choice. Use `Date Only` in field configuration.
  2. Add dates of your choice. I used ( 1-02-2019 to 10-02-2019 ).
  3. Create a view with fullcalendar display.
  4. Visit the fullcalendar page. The end date is displayed one date short. ( In this case I can see the event is rendered from 1-02-2019 to 09-02-2019 ) See screenshot fullcalendar-dateOnly-issue.png
    For Date and Time config with EndTime less than 09:00:00 AM
  1. Create one DateRange field in content type of your choice. Use `Date and Time` in field configuration.
  2. Add date and time of your choice. and add EndTime before 09:00:00AM I used ( 1-02-2019 09:00:00AM to 10-02-2019 08:00:00AM ).
  3. Create a view with fullcalendar display.
  4. Visit the fullcalendar page. The end date is displayed one date short. ( In this case I can see the event is rendered from 1-02-2019 to 09-02-2019 ) See screenshot fullcalendar-dateAndTime-issue.png

This seems to be problem of nextDayThreshold parameter. When an eventโ€™s end time spans into another day, the minimum time it must be in order for it to render as if it were on that day should be 9:00:00 or greater than that.

In FullCalendar v3.10.0 the nextDayThreshold parameter is set to 09:00:00. https://fullcalendar.io/docs/nextDayThreshold

This issue has been fixed in FullCalendar v4.0.0-alpha.4. But as this is not stable version most of the users will be using FullCalendar v3.10.0.

๐Ÿ› Bug report
Status

Closed: outdated

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia madhavimalgaonkar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States dcam

    I've volunteered to help clean up the FullCalendar issue queue. As part of that effort I'm closing issues open for unsupported versions of the module as "Closed (outdated)".

    If this issue is still relevant for version 3.x of FullCalendar, then feel free to re-open it and update the issue version number.

Production build 0.71.5 2024