Calendar: When creating a videoconference, send start/end as string with no timezone (usertime)

This commit is contained in:
nathangray 2021-01-21 11:21:33 -07:00 committed by Hadi Nategh
parent a3dc00217d
commit ac91e403e6
2 changed files with 12 additions and 2 deletions

View File

@ -3568,7 +3568,12 @@ var CalendarApp = /** @class */ (function (_super) {
email: egw.user('account_email'),
cal_id: _data.id,
title: _data.title
}, _data.start, _data.end, {
},
// 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),
{
participants: Object.keys(_data.participants).filter(function (v) { return v.match(/^[0-9]/); })
}], function (_value) {
if (_value) {

View File

@ -4429,7 +4429,12 @@ class CalendarApp extends EgwApp
email:egw.user('account_email'),
cal_id:_data.id,
title: _data.title
}, _data.start, _data.end, {
},
// 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),
{
participants:Object.keys(_data.participants).filter(v => {return v.match(/^[0-9]/)})
}], function(_value){
if (_value)