I'm trying to display events using React-big-calendar. I have a problem with a time format. The data I'm using when passing events to the calendar is as follows:
{
end: Tue Nov 03 2020 21:42:16 GMT+0100 (Central European Standard Time)
start: Tue Nov 03 2020 20:42:06 GMT+0100 (Central European Standard Time)
}
The result is quite unexpected. The library is treating my time format as if were 12h format:
I also noticed that current
time inside calendar has wrong value. I use date-fns
as localizer with polish locale
. I'm also using culture
prop for the calendar component. Here is my component - https://github.com/sSwiergosz/fitness-platform/blob/develop/frontend/components/Calendar.js
I'm out of ideas... Can somebody help me?