Merge pull request #270 from coralproject/timeago-fix

Fixing bug where timeAgo cannot interpret dates from mongoose properly.
This commit is contained in:
Gabriela Rodríguez Berón
2017-02-01 09:57:30 -08:00
committed by GitHub
+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));
};
}
}