Dash between event start and end times is "undefined" with eventTimeFormat and moment plugin
See original GitHub issueBug Reports
Version: FullCalendar v5-beta.4
I’m looking into updating the Schedule component for PrimeFaces, which uses FullCalendar. While doing so, I came across a minor issue:
- FullCalendar with moment plugin
- Option
eventTimeFormat
set to some value such asHH:mm:ss
- An event with a start and end time in
timeGridDay
displays as15:38:02undefined16:08:02
(the dash between the times is missing)
To Reproduce: https://codesandbox.io/s/jolly-brown-hwbvy?file=/src/DemoApp.vue (not specific to vue, also happens with a plain webpack build without a framework)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Removing the hyphen from an Event with an undefined title ...
This is the only way I know how to remove the hyphen from an Event title. Is there a better way? add this...
Read more >fullcalendar v5.1.0 release notes (2020-06-29) | LibHunt
... fix: Dash between event start and end times is "undefined" with eventTimeFormat and moment plugin (#5493); fix: Events get displaced due to ......
Read more >@fullcalendar/moment | Yarn - Package Manager
First, ensure Moment is installed: npm install moment. Then, install the FullCalendar core package, the Moment plugin, and any other plugins (like daygrid):...
Read more >@fullcalendar/moment: Versions | Openbase
... fix: Dash between event start and end times is "undefined" with eventTimeFormat and moment plugin (#5493); fix: Events get displaced due to...
Read more >V4 Release Notes and Upgrade Guide - Docs v4 - FullCalendar
Built-in draggable API for external elements/events. Consequently, jQuery UI is no longer needed for this. Demo; Connector plugins for Moment JS, Moment ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed in v5.1.0
https://codesandbox.io/s/old-wood-qxh91?file=/src/DemoApp.vue
Possibly Experiencing a similar issue when passing in ISO String dates (i’ve also tried moment ‘YYYY/MM/DD hh:mm T’) Start: 2020-06-25T17:31:00.000Z End: 2020-06-25T22:45:00.000Z
I’m still on version 3.10.1 so this could just be a mistake i’ve made somewhere that is unrelated
The event renders properly on the calendar, but the printed out datetime string on the event includes a bunch of undefined. Could this be a bug where fullcalendar is having issue dealing with printing out AM/PM? Or is there an extra option i need to set on the calendar options to allow for these datetimes? I’m new to the library and poked around documentation, tried a bunch of different date formats, but haven’t found any success.
Looks great if those undefined strings werent included.