mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00: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…
x
Reference in New Issue
Block a user