You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the below error in console and the dropdown is empty
Asia/Calcutta
main.b3024e6c930273b7d557.bundle.js:1 ERROR TypeError: Cannot read property 'iso' of undefined
at e.triggerChangeEvent (main.b3024e6c930273b7d557.bundle.js:1)
at e.set [as timezone] (main.b3024e6c930273b7d557.bundle.js:1)
at Li (main.b3024e6c930273b7d557.bundle.js:1)
at main.b3024e6c930273b7d557.bundle.js:1
at main.b3024e6c930273b7d557.bundle.js:1
at Ki (main.b3024e6c930273b7d557.bundle.js:1)
at La (main.b3024e6c930273b7d557.bundle.js:1)
at Object.updateDirectives (main.b3024e6c930273b7d557.bundle.js:1)
at Object.updateDirectives (main.b3024e6c930273b7d557.bundle.js:1)
at $i (main.b3024e6c930273b7d557.bundle.js:1)```
The text was updated successfully, but these errors were encountered:
Here is a workaround for the India problem. It sort of defeats the purpose of [guess]="true", but it works.
component.ts
import*asmomentfrom"moment-timezone";// flag to keep the timezone widget from rendering until we have initialized the event timezone.
initializedTimezone: boolean=false;ngOnInit(){this.initTimezonePicker();}privateinitTimezonePicker(){consttimezone: string=moment.tz.guess();if(timezone==='Asia/Calcutta'){this.event.timezone='Asia/Kolkata';}else{this.event.timezone=timezone;}this.initializedTimezone=true;}
I get the below error in console and the dropdown is empty
The text was updated successfully, but these errors were encountered: