mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
FIX: makes sure we have a zone (#6686)
This commit is contained in:
parent
7f089f07a7
commit
04558b6ca4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user