I built code on both the server and client sides, which is a calendar for me to record my work shifts. The code works great, but the only problem is that when, for example, a week passes, the data moves to the next week. However, on the day the code is reset and just start working, It works perfectly without any bugs, allowing me to seamlessly navigate and record data both forward and backward in weeks. So, I wanted to know whether it is better for me on the server to perform the calculations if a week has passed since the code has reset, or on the client side ![]()
Here is the client side code
Here is the server side code