fixes timestamping across timezones

This commit is contained in:
2026-05-14 22:51:04 -07:00
parent cbdc3f7710
commit d32720a2e0
6 changed files with 225 additions and 7 deletions
+3 -1
View File
@@ -112,19 +112,21 @@ class LiveInfoPanel extends StatelessWidget {
ShowCard(
label: 'On Air Show',
show: currentShow,
sourceTimezone: snapshot?.timezone,
titleColor: themeColors.statusText,
),
const SizedBox(height: 6),
ShowCard(
label: 'Up Next Show',
show: nextShow,
sourceTimezone: snapshot?.timezone,
titleColor: themeColors.statusText,
),
const SizedBox(height: 6),
Text(
liveInfo.lastUpdatedAt == null
? 'Waiting for API response...'
: 'Last update: ${DateFormat.yMd().format(liveInfo.lastUpdatedAt!.toLocal())} ${DateFormat.jm().format(liveInfo.lastUpdatedAt!.toLocal())}${snapshot?.timezone ?? '--'}',
: 'Last update (Local): ${DateFormat.yMd().format(liveInfo.lastUpdatedAt!.toLocal())} ${DateFormat.jm().format(liveInfo.lastUpdatedAt!.toLocal())}',
style: Theme.of(context).textTheme.labelSmall,
),
],