From 44925783f559dee3ba3a182ce2e04214589b6bf1 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 2 Jan 2024 09:14:49 -0800 Subject: [PATCH] Force prettyDateString to use .toLocal() time Fixes an issue where, on some platforms, contact row dates in non-streaming mode were displayed in UTC. --- lib/models/redaction.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/redaction.dart b/lib/models/redaction.dart index ab62a08d..2fb3b2fd 100644 --- a/lib/models/redaction.dart +++ b/lib/models/redaction.dart @@ -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()); }