@@ -28,7 +28,7 @@ function filter_calendar_events(filter_params, event_list) {
2828}
2929
3030// format a moment in a tz
31- var moment_formats = { time : 'HH:mm' , date : 'YYYY-MM-DD' , datetime : 'YYYY-MM-DD HH:mm' }
31+ var moment_formats = { time : 'HH:mm' , date : 'YYYY-MM-DD' , datetime : 'YYYY-MM-DD HH:mm' } ;
3232
3333function format_moment ( t_moment , tz , fmt_type ) {
3434 return t_moment . tz ( tz )
@@ -77,13 +77,13 @@ function update_calendar(tz, filter_params) {
7777 plugins : [ dayGridPlugin ] ,
7878 initialView : 'dayGridMonth' ,
7979 displayEventTime : false ,
80- events : function ( fInfo , success ) { success ( display_events ) } ,
80+ events : function ( fInfo , success ) { success ( display_events ) ; } ,
8181 eventDidMount : function ( info ) {
8282 $ ( info . el )
83- . tooltip ( { title : info . event . title } )
83+ . tooltip ( { title : info . event . title } ) ;
8484 } ,
8585 eventDisplay : 'block'
86- } )
86+ } ) ;
8787 event_calendar . render ( ) ;
8888 }
8989}
@@ -138,6 +138,10 @@ function format_meeting_time(meeting_elt, tz) {
138138}
139139
140140window . timezone_changed = function ( newtz ) {
141+ if ( ! newtz ) {
142+ ietf_timezone . initialize ( 'local' ) ;
143+ newtz = ietf_timezone . get_current_tz ( ) ;
144+ }
141145 // update times for events in the table
142146 if ( current_tz !== newtz ) {
143147 current_tz = newtz ;
0 commit comments