TF-2773 Fix printing no year on the email date

This commit is contained in:
dab246
2024-04-04 11:59:33 +07:00
committed by Dat H. Pham
parent af0dc0cd86
commit 645de4508e
3 changed files with 11 additions and 2 deletions
@@ -46,7 +46,6 @@ extension EmailExtension on Email {
}
String getReceivedAt({required String newLocale, String? pattern}) {
log('EmailExtension::getReceivedAt: newLocale = $newLocale | pattern = $pattern');
if (receivedAt != null) {
return receivedAt!.formatDateToLocal(
pattern: pattern ?? receivedAt!.value.toLocal().toPattern(),