[mob] Fix title for month grouping

This commit is contained in:
Neeraj Gupta 2024-05-04 12:35:33 +05:30
parent 5f9b0d11f2
commit cff695dd02

View file

@ -35,10 +35,13 @@ extension GroupTypeExtension on GroupType {
final date = DateTime.fromMicrosecondsSinceEpoch(file.creationTime!);
return DateFormat.y(Localizations.localeOf(context).languageCode)
.format(date);
} else if (this == GroupType.month) {
final date = DateTime.fromMicrosecondsSinceEpoch(file.creationTime!);
return DateFormat.MMMd(Localizations.localeOf(context).languageCode)
.format(date);
} else {
throw UnimplementedError("not implemented for $this");
}
throw UnimplementedError("not implemented for $this");
}
bool areFromSameGroup(EnteFile first, EnteFile second) {