You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using moment as a localizer. I have the set the timezone as America/New York. When I open the calendar with the browser in that time zone(ET), it works fine. However, when I open it from my timezone(IST), it starts the day from Saturday. I have made some customisation to the calendar, one of which uses the dayOfWeek value to do something. And because of this localizer thing, it's breaking.
It even adds this extra empty line on the calendar, because of the localizer problem.
What's the expected behavior?
It should start from Sunday, no matter what the timezone is.
The week starts from Sunday if I change my browser timezone to ET. This works fine.
Can anyone help me with this problem? I've sat at it for hours and even checked the issues section but I couldn't find a solution. Thank you so much!
PS: Btw, since I'm showing the events using my own layout using a custom DateCellWrapper and I only need to show the calendar for a single locale(en-US), is there any way I can skip adding the localizer to BigCalendar?
The text was updated successfully, but these errors were encountered:
KartikShankhavaram
changed the title
Week starting from saturday when using moment timezone and browser timezones are different
Week starting from saturday when moment timezone and browser timezones are different
Aug 24, 2018
Do you want to request a feature or report a bug?
Report a bug
What's the current behavior?
I am using moment as a localizer. I have the set the timezone as America/New York. When I open the calendar with the browser in that time zone(ET), it works fine. However, when I open it from my timezone(IST), it starts the day from Saturday. I have made some customisation to the calendar, one of which uses the dayOfWeek value to do something. And because of this localizer thing, it's breaking.
It even adds this extra empty line on the calendar, because of the localizer problem.
What's the expected behavior?
It should start from Sunday, no matter what the timezone is.
The week starts from Sunday if I change my browser timezone to ET. This works fine.
Can anyone help me with this problem? I've sat at it for hours and even checked the issues section but I couldn't find a solution. Thank you so much!
PS: Btw, since I'm showing the events using my own layout using a custom DateCellWrapper and I only need to show the calendar for a single locale(en-US), is there any way I can skip adding the localizer to BigCalendar?
The text was updated successfully, but these errors were encountered: