mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: do not display EPOCH
This commit is contained in:
parent
7bb9a839e5
commit
216a5a87cb
@ -95,8 +95,8 @@ updateRelativeAge = function(elems) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
autoUpdatingRelativeAge = function(date,options) {
|
autoUpdatingRelativeAge = function(date,options) {
|
||||||
|
|
||||||
if (!date) return "";
|
if (!date) return "";
|
||||||
|
if (+date === +new Date("1970/1/1 1:0:0")) return "";
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var format = options.format || "tiny";
|
var format = options.format || "tiny";
|
||||||
|
Loading…
Reference in New Issue
Block a user