chore(ui, localization): revert "bump jiffy to v6.2.1"

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-07-11 19:21:57 +05:30
committed by xsahil03x
parent 58891a4da0
commit 0e3eef7e1b
24 changed files with 66 additions and 103 deletions
@@ -270,15 +270,13 @@ class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'yesterday';
} else {
return 'on ${Jiffy.parseFromDateTime(date).MMMd}';
return 'on ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Sent ${_getDay(date)} at ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'Sent ${_getDay(date)} at ${Jiffy(time.toLocal()).format('HH:mm')}';
@override
String get todayLabel => 'Today';