mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 06:52:46 +08:00
FIX: damn timezones
This commit is contained in:
parent
0b0cee4e07
commit
672cd92638
|
@ -96,7 +96,7 @@ updateRelativeAge = function(elems) {
|
|||
|
||||
autoUpdatingRelativeAge = function(date,options) {
|
||||
if (!date) return "";
|
||||
if (+date === +new Date("1970/1/1 1:0:0")) return "";
|
||||
if (+date === +new Date(0)) return "";
|
||||
|
||||
options = options || {};
|
||||
var format = options.format || "tiny";
|
||||
|
|
Loading…
Reference in New Issue
Block a user