From: PhiTux Date: Wed, 22 Oct 2025 14:09:32 +0000 (+0200) Subject: added feature to pick monday/sunday as first-day-of-week X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=06f271515dbdcd7e0287a5fdf05168ffc326f8a4;p=DailyTxT.git added feature to pick monday/sunday as first-day-of-week --- diff --git a/README.md b/README.md index fa65a70..11dba07 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,10 @@ The old version 1 is moved to the [v1 branch](https://github.com/PhiTux/DailyTxT ### Newest Testing Versions: ``` +2.0.0-testing.4 (2025-10-22) +- Fixed a bug, that showed wrong weekdays in the calendar +- Added a feature to choose the first day of the week (Monday or Sunday) in the settings. + 2.0.0-testing.3 (2025-10-13) - Updated the migration process in the frontend. When migration fails on serverside, the user now gets notified. diff --git a/backend/handlers/settings.go b/backend/handlers/settings.go index 6aa3ebe..f1e3ad0 100644 --- a/backend/handlers/settings.go +++ b/backend/handlers/settings.go @@ -27,6 +27,7 @@ func GetDefaultSettings() map[string]any { "checkForUpdates": true, "includeTestVersions": false, "requirePasswordOnPageLoad": false, + "firstDayOfWeek": "monday", } } diff --git a/frontend/src/lib/Datepicker.svelte b/frontend/src/lib/Datepicker.svelte index 9403948..eac204e 100644 --- a/frontend/src/lib/Datepicker.svelte +++ b/frontend/src/lib/Datepicker.svelte @@ -1,6 +1,6 @@