Commit 6706ab4
committed
Fix date-picker confusing American date format
Choosing a date with the calendar button, the selected date was hard-coded
with "." as delimiter as "day.month.year". The later parsing interpreted
this as "month/day/year" when the locale is set to e.g. US American.
This fixes that by creating the date string according to the current locale.
It's not really satisfying - as the whole date-handling back-forth between
BDate and strings of the whole app feels wasteful...
OTOH, adding another locale conversion here isn't that bad, as it's only
invoked once for the date chosen in the calendar window...
Fixes #1291 parent 06b48fb commit 6706ab4
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
0 commit comments