Use day-first written dates and 24-hour chat timestamps

This commit is contained in:
2026-11-05 22:14:48 +00:00
parent 3c4a7ec710
commit 5cb2da9028
3 changed files with 8 additions and 13 deletions
@@ -165,7 +165,7 @@ void main() {
final local = DateTime.utc(2026, 10, 20, 8, 12).toLocal();
final l10n = MaterialLocalizations.of(context);
final expected =
'${l10n.formatCompactDate(local)} · ${l10n.formatTimeOfDay(TimeOfDay.fromDateTime(local), alwaysUse24HourFormat: MediaQuery.alwaysUse24HourFormatOf(context))}';
'${local.day} ${l10n.formatMonthYear(local)} · ${l10n.formatTimeOfDay(TimeOfDay.fromDateTime(local), alwaysUse24HourFormat: true)}';
expect(find.text(expected), findsOneWidget);
final copy = tester.widget<ChatCopyButton>(find.byType(ChatCopyButton));