cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dan-Golden
Helper I
Helper I

Converting Microsoft Teams Shifts Time Zones

Hi all,

 

I'm having a bit of trouble trying to convert our Microsoft Teams Shifts from UTC to EST. I'm not sure where to output it honestly so I can put the result in our Sharepoint list. Putting the loop itself in there obviously throws back an error.

 

Screenshot below. Any help would be greatly appreciated, thank you very much!

 

 

hU9olgHHO5.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Dan-Golden :

Do you want to convert the time in the shift list to the time in the specified time zone, and then create items with the obtained data?

If so, the point is the convert time zone must be in the same loop as the create item to work.

However, I think the simpler way is to directly use the formula addHours to directly calculate the date offset.For example:

1.JPG

Reference Expression:

addHours(items('Apply_to_each')?['sharedShift/endDateTime'],6)
Best Regards,
Bof

View solution in original post

3 REPLIES 3
v-bofeng-msft
Community Support
Community Support

Hi @Dan-Golden :

Do you want to convert the time in the shift list to the time in the specified time zone, and then create items with the obtained data?

If so, the point is the convert time zone must be in the same loop as the create item to work.

However, I think the simpler way is to directly use the formula addHours to directly calculate the date offset.For example:

1.JPG

Reference Expression:

addHours(items('Apply_to_each')?['sharedShift/endDateTime'],6)
Best Regards,
Bof

View solution in original post

You're a genius. Let me try that right now. Thank you so much.

Dan-Golden
Helper I
Helper I

Adjusting the time via expressions worked flawlessly, thank you, sir.

 

firefox_iB9a7onlsb.png

 

addHours(items('Apply_to_each')?['sharedShift/startDateTime'],-5)

I used -5 for EST! Thanks again. 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (53,441)