fix date format in tx details
What changed, and why it matters
This is a tiny UI fix that changes how the date is displayed on a transaction details screen. It swaps one date-formatting helper for another so the date appears in the user's chosen language. There is no security issue visible in the change.
No security action needed; treat as a routine UI/localization fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit replaces a call to a custom DateFormatter.withCurrentLocal() with a direct intl DateFormat using the app’s settingsStore.languageCode. The change is localized to transaction_details_view_model.dart and only affects string formatting for display purposes.
Changed components
lib/view_model/transaction_details_view_model.dartInspect captured patch +2 / −2
diff --git a/lib/view_model/transaction_details_view_model.dart b/lib/view_model/transaction_details_view_model.dart
index 7199ed1a..18c3c9a2 100644
--- a/lib/view_model/transaction_details_view_model.dart
+++ b/lib/view_model/transaction_details_view_model.dart
@@ -30,6 +30,7 @@ import 'package:cw_core/transaction_direction.dart';
import 'package:cw_core/transaction_priority.dart';
import 'package:flutter/foundation.dart';
import 'package:hive/hive.dart';
+import 'package:intl/intl.dart';
import 'package:mobx/mobx.dart';
import 'package:url_launcher/url_launcher.dart';
@@ -77,8 +78,7 @@ class TxDetailRowDefinition {
TxDetailRowDefinition(
keyString: "standard_list_item_transaction_details_date_key",
title: S.current.transaction_details_date,
- valueGetter: (vm) => DateFormatter.withCurrentLocal().format(vm.transactionInfo.date)),
-
+ valueGetter: (vm) => DateFormat("d MMMM yyyy, HH:mm", vm._appStore.settingsStore.languageCode).format(vm.transactionInfo.date)),
TxDetailRowDefinition(
keyString: "standard_list_item_transaction_details_height_key",
title: S.current.transaction_details_height,
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.