Update Jiffy & Fixed

This commit is contained in:
rlee1990
2023-06-05 13:18:29 -04:00
parent c307ee86f9
commit dea5664851
13 changed files with 38 additions and 31 deletions
@@ -83,7 +83,7 @@ abstract class Translations {
/// in the [StreamMessageListView]
String unreadMessagesSeparatorText(
@Deprecated('unreadCount is not used anymore and will be removed ')
int unreadCount,
int unreadCount,
);
/// The label for "connected" in [StreamConnectionStatusBuilder]
@@ -611,13 +611,13 @@ class DefaultTranslations implements Translations {
} else if (date == yesterday) {
return 'yesterday';
} else {
return 'on ${Jiffy(date).MMMd}';
return 'on ${Jiffy.parseFromDateTime(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) =>
'Sent ${_getDay(date)} at ${Jiffy(time.toLocal()).format('HH:mm')}';
'Sent ${_getDay(date)} at ${Jiffy.parseFromDateTime(time.toLocal()).format(pattern: 'HH:mm')}';
@override
String get todayLabel => 'Today';