Having issues setting up UTC 0 Timezone with PrimeReact Calendar. #5513
Labels
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
In my application, I have a calendar component that dispatches start and end dates. However, the time conversion is not working as I wanted it to.
It sends in GMT+3 which is absolutely fine, so I wrote a small UTC Conversion method but due to reasons that I cannot quite understand it does not convert the time properly. It works for Material UI's calendar. Why would this be happening? Does PrimeReact handle calendar output different than MUI for example?
This is how I am converting the time
and This is my function;
So far this returns;
utcDate.toISOString is not a function, then I try converting the value from Calendar to new Date, the error disappears but then my intended functionality still does not work.
Any guidance or help is appreciated, I would like to stick to PrimeReact's calendar if possible
The text was updated successfully, but these errors were encountered: