2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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;
}