With the addition of End dates coming in 8.2.x #2161337: Add a Date Range field type with support for end date, I propose we look at implementing the functionality in the D7 Module Date Single Day, which adds a widget to only display the End time for date fields which start and end on the same date.

Obviously this will depend on the Date Range functionality entering core, which seems to be nearing completion.

Date Single Day

Comments

roborat created an issue. See original summary.

mpdonadio’s picture

Can you clarify what you mean here? Are you talking about Widgets (data entry) or Formatters (data display). Right now, with the proposed patch to core, the formatters will only display the end date when the start and end are different (all-day is a little different since the start time is always 0:00 and the end time is 23:59, so start and end will always be displayed with the core formatters). All-day and date-only are distinct so we can have a timezone aware and timezone agnostic version of the range field.

bverc’s picture

Issue summary: View changes

Sure.

The Date Single Day module provides a data-entry widget to remove the "End Date" field on dates when only end time is desired. This makes the presentation a bit better for users who will be entering dates for events that always start and finish on the same day.

Currently there appears no plans to implement a D8 version of this simple module. But I think this functionality would be best implemented here anyway.

bverc’s picture

Issue summary: View changes
mpdonadio’s picture

Ok. Makes sense now, and would be a great widget to add.

P2790’s picture

Version: » 8.x-1.x-dev

Any updates on this?

heddn’s picture

Drupal is a do-ocrasy. Until someone does something, nothing gets done. Waiting on a patch.

Andriy Khomych’s picture

Seems, nobody didn't do any changes in this issue, I've made a module with such functionality - https://www.drupal.org/project/date_time_day

P2790’s picture

Thanks Andriy

heddn’s picture

Any chance of moving date_time_day into here? Combine forces? I don't think we have problems adding additional maintainers to this project.

Andriy Khomych’s picture

Hi Lucas Hedding, I think we can discuss this in private messenger, did you have the account on drupal.org Slack channel? If yes, please, ping me in Slack, my nickname is - andriy.khomych. Then we can decide a time for short and brief discussion.

heddn’s picture

I'm heddn in irc or slack.

brad.bulger’s picture

Right now, with the proposed patch to core, the formatters will only display the end date when the start and end are different

Was this in reference to "Date and time" fields, or just for "Date only" fields? Like, should a range of 9/12/2018 10 AM to 9/12/2018 11 AM currently only display the date once? If not now, are there plans to make that happen?