cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hockguan
Level: Power Up

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 Team
Community Support Team

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.
hockguan
Level: Power Up

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

Community Support Team
Community Support Team

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.
hockguan
Level: Power Up

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 99 members 4,846 guests
Recent signins:
Please welcome our newest community members: