Commit Graph

23 Commits

Author SHA1 Message Date
Roland Geider
fc881c4929 Properly handle timezones
This should (hopefully 🤞) take care of problems saving entries with timezone
information.
2025-11-18 16:30:52 +01:00
Roland Geider
9b3957fe35 Use "clock" for mocking dates and datetimes
This should make the tests a bit more robust, specially in CI since these
tended to fail depending on how long and when the tests run. Also, rework
a bit the way the start and end dates in sessions were being handled and
initialised
2025-09-16 14:45:16 +02:00
Roland Geider
99580490d3 Fix typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-28 22:25:11 +02:00
Roland Geider
70fba34f0c Better handling of time zones
We now send the current time zone to the server when serializing datetime objects.
This was causing entries to be saved some hours wrong or depending on the time, on
a different day.
2025-05-26 11:13:53 +02:00
Roland Geider
1ecbfa88d1 Correctly set the start and end time to null, if this is what comes from the API 2025-04-18 00:40:05 +02:00
Roland Geider
056ed2b894 Allow day objects to load slots 2024-11-12 22:08:45 +01:00
Roland Geider
a35336f57c Allow editing the fit in week toggle as well as start and end dates 2024-11-12 13:31:56 +01:00
Roland Geider
9ff2bba13a Load the new DayData entries and the regular data objects from structure endpoint 2024-10-30 23:19:10 +01:00
Dieter Plaetinck
8db1a7c960 dcm fix --only-rules=unnecessary-trailing-comma lib 2024-06-07 14:59:00 +03:00
Marvin M
9d479e89b0 const_constructors
info: Prefer const with constant constructors. prefer_const_constructors
2021-10-07 20:40:09 +02:00
Marvin M
45a2a5f857 Fixes pt 1 2021-10-01 17:18:17 +02:00
Github-actions
c877e436b0 Automatic linting 2021-06-22 21:10:15 +00:00
Github-actions
7492b53c67 Automatic linting 2021-06-20 13:09:24 +00:00
Roland Geider
68552ea277 Rename conversion functions
This makes it clearer what gets converted to what
2021-05-18 22:14:58 +02:00
Roland Geider
ad7507c8b7 Update license header as well 2021-04-13 10:28:15 +02:00
Roland Geider
ecd2773a87 Upgrade packages and move application to null safety 2021-03-25 22:20:16 +01:00
Roland Geider
b29436d1e3 Fun with TimeOfDay 2020-12-22 12:54:47 +01:00
Roland Geider
966d5d54d6 Output plan ingredients 2020-12-21 23:41:57 +01:00
Roland Geider
58d131b31a Some more work on the nutritional plans 2020-12-21 20:47:18 +01:00
Roland Geider
1c9d0ab7f6 Add copyright notice to all files 2020-12-06 17:14:50 +01:00
Roland Geider
1d5e61552f Improvements to weight edit form 2020-12-06 14:55:41 +01:00
Roland Geider
f84ddcad78 Show error message when adding weight entries doesn't work 2020-12-05 12:52:00 +01:00
Roland Geider
7f8ecfe770 Add provider and screen for body weight entries 2020-11-21 11:44:29 +01:00