mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 06:07:54 -06:00
feat: Add US/GB english discrimination, fix incorrect localizations
This commit is contained in:
@@ -146,7 +146,7 @@ class _ExtendedDateRangeDialogState extends State<ExtendedDateRangeDialog> {
|
||||
)
|
||||
: null,
|
||||
),
|
||||
format: DateFormat.yMd(),
|
||||
format: DateFormat.yMd(Localizations.localeOf(context).toString()),
|
||||
lastDate: _dateTimeMax(_before, DateTime.now()),
|
||||
inputType: InputType.date,
|
||||
onChanged: (after) {
|
||||
@@ -174,7 +174,7 @@ class _ExtendedDateRangeDialogState extends State<ExtendedDateRangeDialog> {
|
||||
)
|
||||
: null,
|
||||
),
|
||||
format: DateFormat.yMd(),
|
||||
format: DateFormat.yMd(Localizations.localeOf(context).toString()),
|
||||
firstDate: _after,
|
||||
lastDate: DateTime.now(),
|
||||
onChanged: (before) {
|
||||
|
||||
@@ -79,7 +79,7 @@ class _FormBuilderExtendedDateRangePickerState
|
||||
}
|
||||
|
||||
String _dateRangeQueryToString(DateRangeQuery query) {
|
||||
final df = DateFormat.yMd();
|
||||
final df = DateFormat.yMd(Localizations.localeOf(context).toString());
|
||||
if (query is UnsetDateRangeQuery) {
|
||||
return '';
|
||||
} else if (query is AbsoluteDateRangeQuery) {
|
||||
|
||||
Reference in New Issue
Block a user