cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yvonzim
Resolver I
Resolver I

build an ICS for 1 Event in 2 different timezones

I have a flow that generates an ICS file in UTC time, so far so good.

But i want to be able to change the timezones per time-item because it is a flight itinerary and the departure time is in a different time zone then the arrival time. 

 

ICS looks like this: 

 

ics.PNG

I could of course force the user to convert the times before entering them, but that seems like a prescription for disaster.  At some point they are likely to forget to do the conversion before creating the event.

 

What solution is an option?

Yvon

6 REPLIES 6
FlowHawk
Helper II
Helper II

Hey Yvon,

 

Are the inputs already in their different time zones? In other words, could the DTStart be in EST and the DTEnd in PST and they both get converted to UTC? It sounds like users are inputting these times somewhere and selecting a time zone, and you potentially want to convert them individually to UTC before creating the ICS, right? If so, how will you know what time zone they are in?

Hi, 


The user creating the ICS is in Amsterdam (UTC +1).

She stores the departure time and arrival time in the right local time.

for example: departure at 10:00 from NY (local time)  to arrival Amsterdam 17:00 (local time)

 

When i put these datetime fields in the ICS and the guest is in NY and stores the ICS in his\her agenda the departure time wil change to 3.00 (NY local time) instead of the 10.00.

 

it would be great if the user can indicate that 10:00 is in Eastern Time Zone (UTC-05:00)

Where is the user entering the information? Power App, Microsoft Form, SharePoint list form, other?

User is entering info in a sharepointlist with powerapps form

My recommendation would be to create a choice column for the user to select the time zone for the start time and another for the end time. Here are the possible values for those columns: Microsoft Time Zone Index Values | Microsoft Docs

 

Then in your flow I'd use the information to map to UTC. There's no way of knowing what the timezone is unless you capture it from your users.

 

Someone may have a more clever way to select time zones in Power Apps, but I'd check that forum. I didn't see anything quickly searching online.

I tried to think about a drop down with time zones, but i lost my way, because I also have to take daylight saving into account. 

 

What i basically want is the calendar to ignore timezones etc. because the time inserted in Sharepoint is already the right local time. Don't think that is what an ICS file is supposed to do.

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

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