apply locale to jiffy

This commit is contained in:
Salvatore Giordano
2021-03-19 12:26:08 +01:00
parent 2b17fcfac8
commit 8d2934f142
5 changed files with 16 additions and 8 deletions
@@ -84,9 +84,9 @@ class MessageSearchItem extends StatelessWidget {
if (now.year != createdAt.year ||
now.month != createdAt.month ||
now.day != createdAt.day) {
stringDate = Jiffy(createdAt.toLocal()).format('dd/MM/yyyy');
stringDate = Jiffy(createdAt.toLocal()).yMd;
} else {
stringDate = Jiffy(createdAt.toLocal()).format('HH:mm');
stringDate = Jiffy(createdAt.toLocal()).jm;
}
return Text(