cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Office 365 Outlook does not observe timezone when "all day event" is marked

Trigger: Office 365 - When an event is added, updated or deleted in a calendar

My Office 365 outlook timezone is +08:00.

I understand that Flow uses UTC+00:00.

 

Current bug behaviour:

When I created an "all day event" for 3th July 2019, this will be shown in the input body:

{
  "ActionType": "added",
  "Start": "2019-07-03T00:00:00.0000000+00:00",
  "End": "2019-07-04T00:00:00.0000000+00:00",
  ...
}

 

Expected correct behaviour:

This should be shown in the input body:

{
  "ActionType": "added",
  "Start": "2019-07-02T16:00:00.0000000+00:00",
  "End": "2019-07-03T16:00:00.0000000+00:00",
  ...
}
 
4 REPLIES 4
Community Support
Community Support

Hi @hockguan ,

 

As you've described, time may vary in different services because of the time zone.

Please try using addHours() to change them to the time you want to display in your time zone.

For the situation you describe, you could refer to the expression below to get the desired result.

Expression reference:

addHours(triggerBody()?['Start'],-8)
addHours(triggerBody()?['End'],-8)

Image reference:

26.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-bacao-msft,

I would like to add on that when I create a 1hr event for 3th July 2019, 00:00 to 01:00 ("all day event" is unmarked), timezone is observed:

{
  "ActionType": "added",
  "Start": "2019-07-02T16:00:00.0000000+00:00",
  "End": "2019-07-02T17:00:00.0000000+00:00",
  ...
}

 

What you have suggested not recommended due to hardcoding of timezone and will present issues when non-all day event is being synchronized. 

Thus I believe this is a valid bug which MS should be looking into and fixing

Hi @hockguan ,

 

You could try to use Condition to distinguish whether the event is all day event, and then convert the time zone according to different situations to get the expected time.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-bacao-msft, but how do we get the timezone from the flow's owner to avoid hardcoding?

 

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (12,911)