File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
features/transaction/presentation/riverpod Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ extension CustomDateParsing on String {
7070 /// - "Yesterday, 11.33" or "Yesterday"
7171 /// - "Tomorrow, 11.33" or "Tomorrow"
7272 DateTime toDateTimeFromDayMonthYearTime12Hour () {
73- final standardFormat = DateFormat ("d MMMM yyyy hh.mm a" );
73+ final standardFormat = DateFormat ("d MMMM yyyy, hh.mm a" );
7474 final timeOnlyFormat = DateFormat ("hh.mm a" );
7575
7676 // Split by comma to separate date and time parts
Original file line number Diff line number Diff line change @@ -317,8 +317,9 @@ TransactionFormState useTransactionFormState({
317317 }
318318 // categoryController.text is handled by another useEffect based on selectedCategory
319319
320- dateFieldController.text = transaction.date
321- .toDayMonthYearTime12Hour ();
320+ dateFieldController.text = transaction.date.toRelativeDayFormatted (
321+ showTime: true ,
322+ );
322323
323324 final imagePath = transaction.imagePath;
324325 if (imagePath != null && imagePath.isNotEmpty) {
You can’t perform that action at this time.
0 commit comments