From 0c6442e2608002049db4dfcabf901380d710b0f7 Mon Sep 17 00:00:00 2001 From: kfj001 Date: Sun, 10 May 2026 01:19:48 +0000 Subject: [PATCH] Updates formatting for last updated --- lib/live_info_panel.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/live_info_panel.dart b/lib/live_info_panel.dart index 687bcc6..c0057f4 100644 --- a/lib/live_info_panel.dart +++ b/lib/live_info_panel.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; import 'app_theme_business_object.dart'; import 'live_info_business_object.dart'; @@ -125,7 +126,7 @@ class LiveInfoPanel extends StatelessWidget { Text( liveInfo.lastUpdatedAt == null ? 'Waiting for API response...' - : 'Last update: ${liveInfo.lastUpdatedAt!.toLocal().toString().substring(11, 19)} • ${snapshot?.timezone ?? '--'}', + : 'Last update: ${DateFormat.yMd().format(liveInfo.lastUpdatedAt!.toLocal())} ${DateFormat.jm().format(liveInfo.lastUpdatedAt!.toLocal())} • ${snapshot?.timezone ?? '--'}', style: Theme.of(context).textTheme.labelSmall, ), ],