Updates formatting for last updated

This commit is contained in:
kfj001 committed 2026-05-10 01:19:48 +00:00
1 parent a5e1e36ebf
commit 0c6442e260
1 file changed
+2 -1
+2 -1
View File
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'app_theme_business_object.dart'; import 'app_theme_business_object.dart';
import 'live_info_business_object.dart'; import 'live_info_business_object.dart';
@@ -125,7 +126,7 @@ class LiveInfoPanel extends StatelessWidget {
Text( Text(
liveInfo.lastUpdatedAt == null liveInfo.lastUpdatedAt == null
? 'Waiting for API response...' ? '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, style: Theme.of(context).textTheme.labelSmall,
), ),
], ],