mirror of
https://github.com/wassname/talk.git
synced 2026-08-04 13:23:35 +08:00
Fixing bug where timeAgo cannot interpret dates from mongoose properly.
This commit is contained in:
@@ -70,7 +70,7 @@ class i18n {
|
||||
};
|
||||
|
||||
this.timeago = (time) => {
|
||||
return this.timeagoInstance.format(time);
|
||||
return this.timeagoInstance.format(new Date(time));
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user