diericx / climbing_notebook

A tool to help climbers with their training
https://climbingnotebook.com
Other
26 stars 2 forks source link

Fix date issues #61

Closed diericx closed 4 weeks ago

diericx commented 1 month ago

There have been issues surrounding the way dates are stored and displayed in the UI for months now. The main issue is that the UI has been submitting UTC dates to the API and we are storing said dates as UTC in the database, but have historically been displaying dates in local time. We keep the UI and DB in UTC because we are only really concerned with the date and not the time. This setup is slightly unorthodox in that you usually don't do so with a DateTime type. The column in the DB should be a Date only, but sadly it is of type DateTime and I think fixing that is beyond the scope of this patch.

The PR does the following:

And some other bug fixes packaged in:

So after the PR, the flow is as follows: