Time format options

Created on 18 September 2024, 3 months ago

Problem/Motivation

Right now, it is not possible to choose the time format on the month view. Example: an event at 09:00h is displayed as "9:00a". It would be a great improvement to be able to choose from all the custom date-time formats available.

Proposed resolution

Add a dropdown to choose how the date and time will be displayed on each view display.

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @mpractic
  • πŸ‡ΊπŸ‡ΈUnited States erutan

    Another way of approaching this would be to respect the existing Date format select menu in Views and have this be passed through to the module.

  • πŸ‡¨πŸ‡¦Canada mandclu

    Looking at the Date Formatting docs for FullCalendari.io I don't see a way to achieve the time format you're looking for, unless the locale formatting would create it automatically. That last idea should be easy to test, since as of the 3.0.0-beta6 release, the calendar locale should be automatically set to that of the page it's on.

    As you indicate, another option would be to "pass through" formatting from the View. The FullCalendar library doesn't allow for the formatted time to be passed in, but it should be possible to rewrite the title to include the formatted date. Showing that properly in the calendar is currently blocked until πŸ› Render re-written title fields Active is resolved. We would also need to add a configuration option for displayEventTime to be passed in, which would suppress the native date display from the FullCalendar library.

  • πŸ‡¨πŸ‡¦Canada mandclu

    The ability to exclude the default time display was implemented in ✨ Provide an option to exclude time display Active and the title field rewriting was recently fixed in πŸ› Render re-written title fields Active , so the suggested fix of excluding the default time display and rewriting the title field to include a formatted time should now be possible.

  • Status changed to Needs review 24 days ago
  • That's right! I think this would be a good way to archieve a custom time display and there is no need for more options.

    Thanks, Mandclu.

Production build 0.71.5 2024