nggepe / calendar-gc

A jquery calendar library
https://nggepe.github.io/calendar-gc/
MIT License
23 stars 7 forks source link

Displayed date is off by one day #4

Closed rhaas79 closed 1 year ago

rhaas79 commented 2 years ago

Hello. First and foremost thank you so much for this calendar! It is awesome! I've only found one issue with it and perhaps it is in the way I am using it, or the options I am passing. It appears that all of the events I am creating are being displayed one day early. Please see attached screenshot for more details. Am I doing something wrong? Thank you! Capture

nggepe commented 1 year ago

Hello, sorry for the late response. I don't get any notification from this issue. May I'll check this bug tomorrow.

nggepe commented 1 year ago

Hi, I've check this issue, but I cannot find that bug. can you share your complete code?

XFBC commented 1 year ago

Hello good morning, the dateJS function has this bug of returning a day earlier, what I did was use it in ISO 8601 format, for example: date: new Date('2023-01-25T00:00:00'). and I wanted to thank you for the code, very usual image

image

nggepe commented 1 year ago

Hello good morning, the dateJS function has this bug of returning a day earlier, what I did was use it in ISO 8601 format, for example: date: new Date('2023-01-25T00:00:00'). and I wanted to thank you for the code, very usual image

image

Hi @XFBC , thank you for using this library, and give me some issue. I saw that you set your event date at 2023-01-25 and 2023-02-27 in you code, where is the earlier case? your screenshot show the event at 2023-01-25. Is that on the next month?

XFBC commented 1 year ago

Yes, the next event is showing next month. What I wanted to talk to you about is the dateJS error, which can be solved using the UTC format.

nggepe commented 1 year ago

Thanks @XFBC , sorry for miss reading 😄