Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit f87e5a4

Browse files
committed
set default to proposeStart/End to avoid Error:Typ eError: proposeStart.getInTimezone is not a function (try2)
1 parent e8fdad2 commit f87e5a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

interfaces/exchangeCalendar/mivExchangeCalendar.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5566,12 +5566,14 @@ if (this.debug) this.logInfo(" ;;;; rrule:"+rrule.icalProperty.icalString);
55665566
}
55675567
if (this.debug) this.logInfo(" -------------- messageDisposition="+messageDisposition);
55685568

5569-
var proposeStart = this.tryToSetDateValue(input.proposeStart,cal.now());
5570-
var proposeEnd = this.tryToSetDateValue(input.proposeEnd,cal.now());
5569+
var proposeStart = this.tryToSetDateValue(input.proposeStart,"");
5570+
var proposeEnd = this.tryToSetDateValue(input.proposeEnd,"");
55715571
var proposeNewTime = false;
55725572

5573-
input.proposeStart = cal.toRFC3339(proposeStart.getInTimezone(this.globalFunctions.ecUTC()));
5574-
input.proposeEnd = cal.toRFC3339(proposeEnd.getInTimezone( this.globalFunctions.ecUTC()));
5573+
if (proposeStart)
5574+
input.proposeStart = cal.toRFC3339(proposeStart.getInTimezone(this.globalFunctions.ecUTC()));
5575+
if (proposeEnd)
5576+
input.proposeEnd = cal.toRFC3339(proposeEnd.getInTimezone( this.globalFunctions.ecUTC()));
55755577

55765578
if( input.proposeStart && input.proposeEnd ){
55775579
proposeNewTime = true;

0 commit comments

Comments
 (0)