Skip to content
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

Date format in header of dayGridMonth view mode gives wrong month - Always Jan or 01 #7240

Closed
1 task done
shridhar-tl opened this issue Mar 10, 2023 · 1 comment
Closed
1 task done

Comments

@shridhar-tl
Copy link

Reduced Test Case

Will update later if I could

Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?

  • I understand

Which connector are you using (React/Angular/etc)?

React

Bug Description

When we use view mode as dayGridMonth and dayHeaderFormat value is configured something like 'ddd, DD/MMM' or 'ddd, DD/MM' the month part is always representing January like Jan or 01. Current month is March and still the header shows January.

Here is a screenshot for your reference:
image

When I configured dayHeaderFormat value to include year like 'yyyy, ddd, DD/MMM', year is shown as 1970. So it seems its using min date object instead of using current date object.

Here is the screenshot:
image

Additionally second bug is when we navigate to previous month or next month also, this does not change the header, looks like re-rendering is not happening for headers.

This is not just with latest version, its happening with v5.x as well. Not sure how I have never noticed it so far.

@shridhar-tl shridhar-tl changed the title Date format in dayGridMonth view mode gives wrong month - Always Jan or 01 Date format in header of dayGridMonth view mode gives wrong month - Always Jan or 01 Mar 10, 2023
@acerix
Copy link
Member

acerix commented Mar 10, 2023

I believe this existing ticket captures this need:
#5854

Please visit the above issue, give a 👍 to vote (?), press the 🔈Subscribe button to receive updates.

@acerix acerix closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants