mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 04:28:44 +08:00
FIX: damn timezones
This commit is contained in:
@ -96,7 +96,7 @@ 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 "";
|
if (+date === +new Date(0)) return "";
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var format = options.format || "tiny";
|
var format = options.format || "tiny";
|
||||||
|
Reference in New Issue
Block a user