cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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.
Highlighted
New Member

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

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

Highlighted
Community Support
Community Support

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

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.
Highlighted
New Member

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

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

 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (2,227)