1
0
forked from firka/firka

tt_mo: I hope I never have deal with this ever again.

This commit is contained in:
2025-08-30 16:07:21 +02:00
parent 4db98d123f
commit fbc8445647
2 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ extension DateExtension on DateTime {
case FormatMode.yyyymmddwedd:
return "${DateFormat('yyyy MMM. dd').format(weekStart).toLowerCase()}-${DateFormat('dd').format(weekEnd)}";
case FormatMode.yyyymmmm:
return DateFormat('yyyy MMMM').format(weekStart);
return DateFormat('yyyy MMMM').format(this);
}
}

View File

@@ -133,7 +133,7 @@ class _HomeTimetableMonthlyScreen extends State<HomeTimetableMonthlyScreen> {
borderRadius: BorderRadius.circular(6)),
)),
SizedBox(height: 4),
Text(d.format(widget.data.l10n, FormatMode.dd),
Text(d.format(widget.data.l10n, FormatMode.d),
style: appStyle.fonts.B_14R.apply(
color: (d.weekday == DateTime.saturday ||
d.weekday == DateTime.sunday)
@@ -337,7 +337,7 @@ class _HomeTimetableMonthlyScreen extends State<HomeTimetableMonthlyScreen> {
),
),
onTap: () async {
var newNow = now!.subtract(Duration(days: 30));
var newNow = DateTime(now!.year, now!.month - 1);
setState(() {
now = newNow;
lessons = null;
@@ -362,7 +362,7 @@ class _HomeTimetableMonthlyScreen extends State<HomeTimetableMonthlyScreen> {
color: appStyle.colors.accent,
),
onTap: () async {
var newNow = now!.add(Duration(days: 30));
var newNow = DateTime(now!.year, now!.month + 1);
setState(() {
now = newNow;
lessons = null;