Fixing bug where timeAgo cannot interpret dates from mongoose properly.

This commit is contained in:
David Jay
2017-01-30 17:55:06 -05:00
parent b75557912f
commit 235214642e
+1 -1
View File
@@ -70,7 +70,7 @@ class i18n {
};
this.timeago = (time) => {
return this.timeagoInstance.format(time);
return this.timeagoInstance.format(new Date(time));
};
}
}