forked from cwtch.im/cwtch-ui
Merge pull request 'FIX #546 - Force Canadian Locale for Full Date Format' (#807) from fixdate into trunk
Reviewed-on: cwtch.im/cwtch-ui#807 Reviewed-by: Dan Ballard <dan@openprivacy.ca>
This commit is contained in:
commit
da42a29e66
|
@ -39,5 +39,7 @@ String prettyDateString(BuildContext context, DateTime date) {
|
|||
// }
|
||||
return AppLocalizations.of(context)!.now;
|
||||
}
|
||||
return DateFormat.yMd(Platform.localeName).add_jm().format(date.toLocal());
|
||||
// note: explicitly overriding the 'locale' here to force
|
||||
// a consistent YYYY-mm-dd HH::MM format.
|
||||
return DateFormat.yMd('en_CA').add_jm().format(date.toLocal());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue