Calendar: When creating a videoconference, send start/end as string with no timezone (usertime), but start/end date can also already be a string

This commit is contained in:
nathangray 2021-01-21 11:47:50 -07:00
parent 0ca3d63f18
commit d1287887a3
2 changed files with 4 additions and 4 deletions

View File

@ -3571,8 +3571,8 @@ var CalendarApp = /** @class */ (function (_super) {
},
// Dates are user time, but we told javascript it was UTC.
// Send just the timestamp (as a string) with no timezone
_data.start.toJSON().slice(0, -1),
_data.end.toJSON().slice(0, -1),
(typeof _data.start != "string" ? _data.start.toJSON() : _data.start).slice(0, -1),
(typeof _data.end != "string" ? _data.end.toJSON() : _data.end).slice(0, -1),
{
participants: Object.keys(_data.participants).filter(function (v) { return v.match(/^[0-9]/); })
}], function (_value) {

View File

@ -4432,8 +4432,8 @@ class CalendarApp extends EgwApp
},
// Dates are user time, but we told javascript it was UTC.
// Send just the timestamp (as a string) with no timezone
_data.start.toJSON().slice(0,-1),
_data.end.toJSON().slice(0,-1),
( typeof _data.start != "string" ? _data.start.toJSON() : _data.start).slice(0,-1),
( typeof _data.end != "string" ? _data.end.toJSON() : _data.end).slice(0,-1),
{
participants:Object.keys(_data.participants).filter(v => {return v.match(/^[0-9]/)})
}], function(_value){