FIX #546 - Force Canadian Locale for Full Date Format #807
|
@ -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