FIX: makes sure we have a zone (#6686)

This commit is contained in:
Joffrey JAFFEUX 2018-11-27 16:42:23 +01:00 committed by GitHub
parent 7f089f07a7
commit 04558b6ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,6 +215,7 @@
}
if (
options.timezone &&
displayedTimezone === watchingUserTimezone &&
options.timezone !== displayedTimezone &&
!compareZones(displayedTimezone, options.timezone)
@ -222,7 +223,7 @@
timezones.unshift(options.timezone);
}
timezones.forEach(timezone => {
timezones.filter(z => z).forEach(timezone => {
if (compareZones(timezone, displayedTimezone)) {
return;
}