FIX: Do not use force timezone value in display timezone

This commit is contained in:
Vinoth Kannan 2018-10-11 19:49:40 +05:30
parent 7a41a783a4
commit b54d940182
1 changed files with 3 additions and 4 deletions

View File

@ -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