TF-2713 Small evolution for printing

This commit is contained in:
dab246
2024-03-15 11:32:51 +07:00
committed by Dat H. Pham
parent f342e14e7e
commit 840a191831
18 changed files with 42 additions and 127 deletions
@@ -48,13 +48,10 @@ extension DateTimeNullableExtension on DateTime? {
}
String toPatternForEmailView() {
if (this != null) {
if (this!.isThisYear()) {
return 'dd.MM, HH:mm';
} else {
return 'dd/MM/yyyy';
}
if (this?.isThisYear() == true) {
return 'dd.MM, HH:mm';
} else {
return 'dd.MM.yyyy, HH:mm';
}
return 'dd/MM/yyyy';
}
}