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:
parent
7f089f07a7
commit
04558b6ca4
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue