New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schedule: Creating an event 1 day apart at midnight, places the event on the same day #9775
Comments
Can you confirm if your issue is this or not: #9041 ??? |
Hmm seems similar but I dont think its the same, I think that one is related to the day and week view mode only. |
ok i think this might be FC related can you try my 23:59 trick and see if that works? |
yea I can confirm if the end date has the hour of 23:59 instead of 00:00, it shows properly |
Yep its the same FullCalendar bug. as #9041 |
Its possible its fixed in a later Full Calendar but updating FC is always scary because they change so much between releases. |
ah I see, I thought it might be different since I'm using the month view but I guess the cause is the same. |
It seems the current version primefaces is using is a bit old, it's using v5.10.1 from November 2021, maybe an update is due? There is now version 6, which according to the release notes has minimal breaking changes but I guess a safer update would be to the last v5 version (5.11.3) instead I suppose. |
Yep I can take a look at this. 5.11.3 should be easy. the 6 upgrade we can then try and see how big of a pain it is! |
Thanks, let me know whenever you push it, I can pull it and rebuild PF from source to test it out and then report back if I noticed any bugs or other issues. |
OK going to 5.11.3 letting the build run now. Seems to work OK. I tried to go to 6.1.4 and got some JS errors I didn't feel like investigating 😄 |
Ok I pulled it and compiled from source but seems like some pages on my app with datatables no longer open, I get a:
I think #9767 broke something |
Ok I changed the FilterConstraints#of to return null when being passed a null match mode just like it was before which fixed the issue, could make a PR but maybe @Rapster had something different in mind? Anyway I tested 5.11.3 but it seems the issue is still there. Are we sure this is a FullCalendar issue? Could this also be something with how Primefaces is passing the dates to the FullCalendar library? In regards to v6, there is a migration guide here: https://fullcalendar.io/docs/upgrading-from-v5 |
Thanks for reporting @newk5 I'll have a look |
Can you submit a PR for the filter constraint issue. That feels like a regression bug As for FC I think it's a bug on their side else 23:59:59 shouldn't make it work. |
Describe the bug
If you create an event with start date 15/02/2023 00:00 and end date 16/02/2023 00:00 the event will only be placed on 1 day in the calendar.
Reproducer
chrome_DWuK9blSwD.mp4
Expected behavior
The schedule should place the event spanning over the 2 days (2 squares in the schedule) since the it goes from the midnight of the day before to the midnight of the day after. But instead it just places it as if the start and end data are on the same day.
PrimeFaces edition
Community
PrimeFaces version
12
Theme
Prestige
JSF implementation
All
JSF version
All?
Java version
All?
Browser(s)
All?
The text was updated successfully, but these errors were encountered: