FIX: Do not use force timezone value in display timezone
This commit is contained in:
parent
7a41a783a4
commit
b54d940182
|
@ -53,9 +53,8 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var relativeTime = relativeTime.tz(
|
var displayTimezone = moment.tz.guess();
|
||||||
options.forceTimezone || moment.tz.guess()
|
var relativeTime = relativeTime.tz(displayTimezone);
|
||||||
);
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
options.format !== "YYYY-MM-DD HH:mm:ss" &&
|
options.format !== "YYYY-MM-DD HH:mm:ss" &&
|
||||||
|
@ -78,7 +77,7 @@
|
||||||
|
|
||||||
var displayedTime = relativeTime.replace(
|
var displayedTime = relativeTime.replace(
|
||||||
"TZ",
|
"TZ",
|
||||||
_formatTimezone(options.forceTimezone || moment.tz.guess()).join(": ")
|
_formatTimezone(displayTimezone).join(": ")
|
||||||
);
|
);
|
||||||
|
|
||||||
$element
|
$element
|
||||||
|
|
Loading…
Reference in New Issue