altinselimi / kalendar

Full featured, responsive, lightweight calendar in the browser.

Home Page:http://kalendar.altinselimi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time Zone issue and Some Appointments are missing after 12PM

umerdev228 opened this issue · comments

Hello,
Kalendar showing accurate time on codepen or other JS playground but wrong in project and some slots or appointments after 12:00pm are not showing
Screenshot_1
.

any console errors ? can you reproduce it in a codepen ?

It was working fine in CodePen but not in my project.
I'm using moment-timezone library.
I think is has issues with moment or moment-timezone

yeah it is most likely that. See if the output of your moment dates is the same format with what you see in the CodePen starting data.

In other words, the library doesn't have issues with moment/moment-timezone. Its just that it requires a specific date format for displaying dates. And also outputs a specific format which you have to take into account when storing/updating dates.