diff --git a/Frontend-user/lib/finance.dart b/Frontend-user/lib/finance.dart index e6db88f..edaecd4 100644 --- a/Frontend-user/lib/finance.dart +++ b/Frontend-user/lib/finance.dart @@ -10,6 +10,7 @@ class Finance extends StatelessWidget { @override Widget build(BuildContext context) { initializeDateFormatting('de_DE'); + Intl.defaultLocale = 'de_DE'; return Scaffold( appBar: AppBar( @@ -67,7 +68,7 @@ class Finance extends StatelessWidget { Text getSubtitle(Transaction transaction) { String text = '${transaction.amount / 100}'; text += '€ '; - text += DateFormat("EEEE, dd. MMMM yyyy HH:mm", 'de_DE') + text += DateFormat("EEEE, dd. MMMM yyyy HH:mm") .format(transaction.date); if (transaction.description != null) { (text += '\n${transaction.description}');