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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

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

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,606)