I a perplexed, and hope someone can share their wisdom.
I have a sharepoint list on a site in the Eastern Time Zone.
I have users in the Pacific Time Zone that also use this same list.
I have changed the Site settings to allow the users to set their regional settings to their desired time zone. (Viewing of the list is not right for users; but that's another issue).
When a Pacific Time zone person adds data to this list, they value 3 date/time fields.
If the user selects 06/30/2021 17:00 (5pm to them) as the time.
A Flow is triggered to take the data for the item from the sharepoint list and create a file using html.
For the datetime field I do this formula:
The variable TimeZone has its value 'Pacific Standard Time'.
What comes out on my document is this: 06/30/2021 03:00
I must be missing another piece in my formula but can't figure out what it needs.
Any experts help is appreciated.
Can you confirm what do you mean by this? What setting are you referring to?
"I have changed the Site settings to allow the users to set their regional settings to their desired time zone"
Please note that SharePoint stores all times in UTC format. So when User from Pacific stores data as 5 PM their time, SharePoint writes it in UTC format. If you are intending it to convert it, you can convert it to Pacific time.
Use this action and see if it is helpful. In my case, I have Site Settings set to Pacific so everything displayed within the site is in pacific time. I am in Eastern time zone and I saved the date as 8:05 AM. Now when I convert it as below, I am getting 8:05 AM back.
Compose below shows saved date in UTC format as is without any formatting.
Convert now shows converted date in Eastern Time zone.
Site setting - my brain is frazzled - ignore that statement earlier.
Here are some screen shots of what I have going on.
I did add the Convert TimeZone action in my flow.
The west coast user enters in 17:19 (5:19 pm)
The Sharepoint List shows this
I have this step in my flow
I get this as the result
I also tried this - just convert it to Eastern Time.
I just want it to say 5:19 pm - I could subtract an hour but will that work everytime?
Which time zone you are interested in? Is it Pacific US? If yes, Can you use Pacific time US Canada?
I see that you selected something that is giving pacific time Mexico...
Can you tell me where is the user? in Pacific time Mexico? Because I see an issue in offset. 6/30 5:19 PM should be saved as 7/1 1:19 AM since its an 8 hours offset. But in your screen shot it shows based time as 22:19 which is just 5 hours offset.
Can you add a compose just before convert time and map Load start time and upload picture?
Thank you PrasadAthalye for sticking with me. Much appreciated!
I went back to beginning. I think because I am in the Eastern time zone and testing this I was not mimicing things as my west coast user correctly.
My Sharepoint Site settings
My regional settings
my browser settings
My data entry form.
SharePoint List View of dates entered.
The flow test results of convert.
Got it to show me the correct time!
Now I need to get my west coast user to test it out and make sure it converts correctly.
Please note that Regional Settings apply to entire site. It is not a User level setting.
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.