File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -373,11 +373,11 @@ function createEvent(event, calendarTz){
373
373
newEvent = {
374
374
start : {
375
375
dateTime : icalEvent . startDate . toString ( ) ,
376
- timeZone : validateTimeZone ( icalEvent . startDate . timezone . toString ( ) )
376
+ timeZone : validateTimeZone ( icalEvent . startDate . timezone . toString ( ) , calendarTz )
377
377
} ,
378
378
end : {
379
379
dateTime : icalEvent . endDate . toString ( ) ,
380
- timeZone : validateTimeZone ( icalEvent . endDate . timezone . toString ( ) )
380
+ timeZone : validateTimeZone ( icalEvent . endDate . timezone . toString ( ) , calendarTz )
381
381
} ,
382
382
} ;
383
383
}
@@ -820,7 +820,7 @@ function processTasks(responses){
820
820
* @param {string } tzid - Timezone descriptor to validate
821
821
* @return {string } Valid IANA timezone descriptor
822
822
*/
823
- function validateTimeZone ( tzid ) {
823
+ function validateTimeZone ( tzid , calendarTz ) {
824
824
let IanaTZ ;
825
825
if ( tzids . indexOf ( tzid ) == - 1 ) {
826
826
if ( tzid in tzidreplace ) {
You can’t perform that action at this time.
0 commit comments