traggo / server

self-hosted tag-based time tracking
https://traggo.net
GNU General Public License v3.0
1.21k stars 58 forks source link

Add date format user setting for english locale #134

Closed AbundantSalmon closed 1 year ago

AbundantSalmon commented 1 year ago

closes #135

Currently the English locale only shows dates formatted in US formatting (MM/DD/YYYY), most English speaking users would probably prefer the more standard DD/MM/YYYY format. I have added the Australian and British locales which recreate the DD/MM/YYYY format with am/pm and 24 hour time respectively. I have also renamed the "English" locale to "American" to better represent the actual usage.

Screenshot 2023-01-15 at 02 42 48
codecov[bot] commented 1 year ago

Codecov Report

Base: 92.69% // Head: 92.57% // Decreases project coverage by -0.11% :warning:

Coverage data is based on head (4ef6618) compared to base (017af77). Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #134 +/- ## ========================================== - Coverage 92.69% 92.57% -0.12% ========================================== Files 70 70 Lines 1547 1549 +2 ========================================== Hits 1434 1434 - Misses 79 80 +1 - Partials 34 35 +1 ``` | [Impacted Files](https://codecov.io/gh/traggo/server/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=traggo) | Coverage Δ | | |---|---|---| | [model/setting.go](https://codecov.io/gh/traggo/server/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=traggo#diff-bW9kZWwvc2V0dGluZy5nbw==) | `0.00% <ø> (ø)` | | | [setting/usersettings.go](https://codecov.io/gh/traggo/server/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=traggo#diff-c2V0dGluZy91c2Vyc2V0dGluZ3MuZ28=) | `97.29% <60.00%> (-2.71%)` | :arrow_down: | | [setting/get.go](https://codecov.io/gh/traggo/server/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=traggo#diff-c2V0dGluZy9nZXQuZ28=) | `86.66% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=traggo). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=traggo)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.