Force prettyDateString to use .toLocal() time
Fixes an issue where, on some platforms, contact row dates in non-streaming mode were displayed in UTC.
This commit is contained in:
parent
e421642a02
commit
44925783f5
|
@ -39,5 +39,5 @@ String prettyDateString(BuildContext context, DateTime date) {
|
|||
// }
|
||||
return AppLocalizations.of(context)!.now;
|
||||
}
|
||||
return DateFormat.yMd(Platform.localeName).add_jm().format(date);
|
||||
return DateFormat.yMd(Platform.localeName).add_jm().format(date.toLocal());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue