FIX: always prepend watching user timezone to previews (#6695)

This commit is contained in:
Joffrey JAFFEUX
2018-11-29 12:02:27 +01:00
committed by GitHub
parent 4c7dfed32e
commit 6b433b66f5
2 changed files with 14 additions and 23 deletions

View File

@ -202,15 +202,13 @@
timezone => timezone !== watchingUserTimezone
);
if (!_isEqualZones(displayedTimezone, watchingUserTimezone)) {
previewedTimezones.push({
timezone: watchingUserTimezone,
current: true,
dateTime: options.time
? dateTime.tz(watchingUserTimezone).format("LLL")
: _createDateTimeRange(dateTime, watchingUserTimezone)
});
}
previewedTimezones.push({
timezone: watchingUserTimezone,
current: true,
dateTime: options.time
? dateTime.tz(watchingUserTimezone).format("LLL")
: _createDateTimeRange(dateTime, watchingUserTimezone)
});
if (
options.timezone &&