implemented short relative date formatting for chat and added unit tests
This commit is contained in:
1 parent
4c190de479
commit
7d02e70459
3 files changed
+64
-1
No files matched your search
@@ -66,7 +66,7 @@ class GetChatResponseObject {
|
||||
|
||||
static GetChatResponseObject getDateDummy(int timestamp) {
|
||||
var elementDate = DateTime.fromMillisecondsSinceEpoch(timestamp * 1000);
|
||||
return getTextDummy(elementDate.formatDate());
|
||||
return getTextDummy(elementDate.formatDateRelativeShort());
|
||||
}
|
||||
|
||||
static GetChatResponseObject getTextDummy(String text) =>
|
||||
|
||||
Reference in new issue
Block a user