Provide environment information
When an assignment is posted a duplicate is created in the next day too.
Describe the bug
To understand the issue, navigate to the schedule page in the sidebar and then take a look at the calendar with assignments.
You can see the duplicates are formed of every assignments.
In fact those are not the duplicates.
Change the calendar view into the day . Now go to the day, that has an assignment. If the assignment is posted in the early morning 5AM, the current logic adding it to the 24hrs so it is added for next 24hrs, that is, till the next day morning 4:59AM.(check the screen shots).


Link to reproduction
https://learn.tutly.in/schedule
To reproduce
This can be solved as follows:
Irrespective of the time of uploading an assignment it must add to calendar till respective day's 23:59 only.
It prevents to add the assignment to the next day, as a result duplicates are reduced
Additional information
No response
Provide environment information
When an assignment is posted a duplicate is created in the next day too.
Describe the bug
To understand the issue, navigate to the schedule page in the sidebar and then take a look at the calendar with assignments.
You can see the duplicates are formed of every assignments.
In fact those are not the duplicates.
Change the calendar view into the day . Now go to the day, that has an assignment. If the assignment is posted in the early morning 5AM, the current logic adding it to the 24hrs so it is added for next 24hrs, that is, till the next day morning 4:59AM.(check the screen shots).
Link to reproduction
https://learn.tutly.in/schedule
To reproduce
This can be solved as follows:
Irrespective of the time of uploading an assignment it must add to calendar till respective day's 23:59 only.
It prevents to add the assignment to the next day, as a result duplicates are reduced
Additional information
No response