PTBAS-737: using consistent english language now#184
PTBAS-737: using consistent english language now#184
Conversation
* using system locale for date/times
|
@CodiumAI-Agent /review |
PR Reviewer Guide 🔍(Review updated until commit c9cc12b)Here are some key observations to aid the review process:
|
src/main/java/de/doubleslash/keeptime/common/DateFormatter.java
Outdated
Show resolved
Hide resolved
src/test/java/de/doubleslash/keeptime/common/DateFormatterTest.java
Outdated
Show resolved
Hide resolved
src/test/java/de/doubleslash/keeptime/common/DateFormatterTest.java
Outdated
Show resolved
Hide resolved
src/main/java/de/doubleslash/keeptime/common/DateFormatter.java
Outdated
Show resolved
Hide resolved
|
@MomdAli I was using it the last weeks and I did not notice issues - only annoying thing is the calendar view that sunday is the first day of the week. can this be changed / also localized somehow? |
|
Persistent review updated to latest commit c9cc12b |
|
|
||
| datePicker.setOnShowing(e-> Locale.setDefault(Locale.Category.FORMAT, systemLocale)); | ||
| datePicker.setOnHiding(e-> Locale.setDefault(Locale.Category.FORMAT, Locale.getDefault())); | ||
| datePicker.setOnAction(e-> Locale.setDefault(Locale.Category.FORMAT, Locale.getDefault())); |
There was a problem hiding this comment.
these resets did not make sense for me, as you reset it to the "wrong" locale. But it showed me this way to only set the locale for FORMAT. I created #191 to most likely replace this PR - lets review it.
|
Implemented via #191 |

Locale management and formatting improvements:
setSystemLocale,getSystemLocale, andapplySystemLocaleOnDatemethods to theDateFormatterutility class, allowing centralized management of the application's locale and consistent formatting of dates inDatePickercomponents. (DateFormatter.java) [1] [2]DateFormatter, and the default locale is explicitly set to English to ensure predictable behavior. (App.java) [1] [2]