From a92ea1dcf614b1db6eca80dbb0d9846755c0f846 Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Thu, 25 Sep 2025 21:33:20 +0200 Subject: [PATCH] home/tt: Fix date formatting on the title bar --- firka/lib/helpers/extensions.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firka/lib/helpers/extensions.dart b/firka/lib/helpers/extensions.dart index 96d52d2..0ba7198 100644 --- a/firka/lib/helpers/extensions.dart +++ b/firka/lib/helpers/extensions.dart @@ -133,7 +133,11 @@ extension DateExtension on DateTime { case FormatMode.dd: return DateFormat('dd', l10n.localeName).format(this); case FormatMode.yyyymmddwedd: - return "${DateFormat('yyyy MMM. dd', l10n.localeName).format(weekStart).toLowerCase()}-${DateFormat('dd', l10n.localeName).format(weekEnd)}"; + if (l10n.localeName == "en") { + return "${DateFormat('yyyy MMM. dd', l10n.localeName).format(weekStart).toLowerCase()}-${DateFormat('dd', l10n.localeName).format(weekEnd)}"; + } else { + return "${DateFormat('yyyy MMM dd', l10n.localeName).format(weekStart).toLowerCase()}-${DateFormat('dd', l10n.localeName).format(weekEnd)}"; + } case FormatMode.yyyymmmm: return DateFormat('yyyy MMMM', l10n.localeName).format(this); case FormatMode.yyyymmdd: