home/tt: Fix date formatting on the title bar

This commit is contained in:
2025-09-25 21:33:20 +02:00
parent a9829b2163
commit a92ea1dcf6

View File

@@ -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: