What changed, and why it matters
This commit changes a single screen in the Stack Wallet app so that timestamps are shown in the user's local time instead of UTC. It is a minor user-interface improvement with no security relevance.
No security action required; treat as a routine UI fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds a check in _formatTime() within lib/pages/shopinbit/shopinbit_ticket_detail.dart: if the incoming DateTime is UTC, it is converted to local time before formatting. This only affects how a time string is rendered on the ShopInBit ticket detail page. There is no change to cryptographic, network, storage, or authentication logic.
Changed components
lib/pages/shopinbit/shopinbit_ticket_detail.dartInspect captured patch +5 / −0
diff --git a/lib/pages/shopinbit/shopinbit_ticket_detail.dart b/lib/pages/shopinbit/shopinbit_ticket_detail.dart
index 2a6cb41..5e88802 100644
--- a/lib/pages/shopinbit/shopinbit_ticket_detail.dart
+++ b/lib/pages/shopinbit/shopinbit_ticket_detail.dart
@@ -237,6 +237,11 @@ class _ShopInBitTicketDetailState extends ConsumerState<ShopInBitTicketDetail> {
}
String _formatTime(DateTime dt) {
+ // TODO: local time is a start but this is still far from ideal...
+ if (dt.isUtc) {
+ dt = dt.toLocal();
+ }
+
final hour = dt.hour.toString().padLeft(2, '0');
final minute = dt.minute.toString().padLeft(2, '0');
return "$hour:$minute";
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.