Closed mityakoval closed 7 years ago
I will need more data to understand what is happening, can you provide me with a link to this project of yours or something?
@deviprsd21 I have sent you the link and credentials to deviprsd21@gmail.com
@deviprsd21 You can see actual events on a certain day by clicking on it.
I'm testing your backend data with Calendario v5.0.1 (Released a long time ago) and this is the result. And that is the month of December with Jan 1st as it's last date.
OK. So it's probably my code. Any ideas what might be causing such behaviour? Because I have changed the implementation a little bit. But I've compared Calendario.prototype.parseDay
and Calendario.prototype.parseDataToDay
functions to my code and they are the same.
It seems you have made some changes with original js file, do look into it. And I can't seem to think why it is happening with you without knowing what changes you have made so far. Also this looks similar to #13, Look into that too
@deviprsd21 Replaced my code with the original and still the same problem. Just to be sure that the server sends correct data:
Looks like I'm able to reproduce it. I will look into it.
Thanks for your time :)
Let me know if this worked and give some suggestions for v6 in which way I can make Calendario life more rich and easier
Updated my code with your commit. The issue is fixed for the next month but it is still there for the current month.
It still displays events from Nov 30 on Dec 30
This should completely fix everything.
Awesome! Works for me. Thank you! :)
I will just post some screenshots because this issue is quite hard to explain.
And this is the output from the console at the time of rendering: This is December. As you can see it has 8 events in total for the first day of the month - 4 events for Dec 1 and another 4 for Jan 1. However, all 8 are placed on Jan 1.
I double checked my backend to return correct data.