From f0415a22dac4e96160e7ea0292d8711a9d2f5913 Mon Sep 17 00:00:00 2001 From: esche Date: Tue, 27 Jun 2023 00:48:14 +0200 Subject: [PATCH] added default locale --- Frontend-user/lib/finance.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}');