Hello
I use V4CalendarPostItem to make an event on calendar but it should be register as UTC time.
As https://docs.microsoft.com/en-us/connectors/office365/#create-event-(v4),
start time and end time parameters are date-no-tz type. If I use data-no-tz(ie. '2017-08-29T04:00:00'),
the calendar event should be registered as UTC time zone. ( register time is correct but time zone is UTC)
I found a workaround to use DateTimeValue with locale to register own local time zone.
I don't understand the behavior of time zone mechanism of V4CalendarPostItem.
Register as UTC time zone but registered time is correct even it is UTC time zone.
Office365Outlook.V4CalendarPostItem(
G_CalendarID,
VarCalTitle,
VarCalStartTime,
VarCalEndTime,
"Tokyo Standard Time",
{
body: RichTextEditorBody.HtmlText,
showAs: GlbVar.ShowAs }
)
Register correctly as Tokyo Standard Time
Office365Outlook.V4CalendarPostItem(
G_CalendarID,
VarCalTitle,
DateTimeValue(VarCalStartTime,"ja-JP"),
DateTimeValue(VarCalEndTime,"ja-JP"),
"Tokyo Standard Time",
{
body: RichTextEditorBody.HtmlText,
showAs: GlbVar.ShowAs }
)
I