cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jeretangwk
Frequent Visitor

Issues with timezone

Hi,

 

I've been browsing the forum for quite sometime but yet found a solution to my issue, hope someone can help:

1. Have a sharepoint list with 2 date/time picker (i.e. '1st Appointment' & 'Next/Last Appointment')

2. Had changed my regional settings to local time (i.e. Kuala Lumpur/Singapore)

3. Tried applying 'timezone converter' but didn't work (maybe because it is 2 dates/time instead of 1?)

 

Here's quick snapshots of my flow

jeretangwk_0-1620091013053.png

Details ('1st Appointment' & 'Next/Last Appointment' needs to be in this email, but time is always inaccurate.

jeretangwk_3-1620091308542.png

I've also another flow that has the same issue with timezone

jeretangwk_0-1620092558580.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-duann-msft
Community Support
Community Support

Hi @jeretangwk

 

Thank you for posting.

 

According to your description, you couldn’t return accurate time while using flow. If any misunderstanding, please kindly let me know.

 

I believe there is nothing to do with amount of date type column. The issue is caused by timezone conversion. If your datetime has a ‘Z’ at the end, it means it's in UTC time.

For example: 2020-04-10T01:28:14.0406387Z

 

Thus, we need to convert it manually using ‘convert time zone’ action or convertTimeZone function.

 

So seems you are located in UTC+8  region, we can try:

convertTimeZone(item()?['First_x0020_Appointment'],'UTC','Pacific Standard Time')

 

Here is my test process for your reference:

List:

v-duann-msft_0-1620109310460.png

 

Flow:

v-duann-msft_1-1620109310465.png

 

Output:

v-duann-msft_2-1620109310468.png

 

https://docs.microsoft.com/en-us/troubleshoot/power-platform/power-automate/converting-time-zone-pow...

https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones

 

Hope the content above may help you.

 

Best regards,

Anna

View solution in original post

4 REPLIES 4
v-duann-msft
Community Support
Community Support

Hi @jeretangwk

 

Thank you for posting.

 

According to your description, you couldn’t return accurate time while using flow. If any misunderstanding, please kindly let me know.

 

I believe there is nothing to do with amount of date type column. The issue is caused by timezone conversion. If your datetime has a ‘Z’ at the end, it means it's in UTC time.

For example: 2020-04-10T01:28:14.0406387Z

 

Thus, we need to convert it manually using ‘convert time zone’ action or convertTimeZone function.

 

So seems you are located in UTC+8  region, we can try:

convertTimeZone(item()?['First_x0020_Appointment'],'UTC','Pacific Standard Time')

 

Here is my test process for your reference:

List:

v-duann-msft_0-1620109310460.png

 

Flow:

v-duann-msft_1-1620109310465.png

 

Output:

v-duann-msft_2-1620109310468.png

 

https://docs.microsoft.com/en-us/troubleshoot/power-platform/power-automate/converting-time-zone-pow...

https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones

 

Hope the content above may help you.

 

Best regards,

Anna

View solution in original post

Hi Anna,

 

The method does not seems to work with my other flow

I've create HTML table after 'Get items'

jeretangwk_0-1620204871085.png

jeretangwk_1-1620205028934.png

I've got this error message

jeretangwk_2-1620205089563.png

Would you be able to help me out on this? Thank you!

 

Hi @jeretangwk 

 

Thank you for your attempts.

 

Please help to confirm you select 'value' of 'get items' in from area in 'create html table'. 

Meanwhile, we should input formula in expression area in dynamic content interface.

v-duann-msft_1-1620205573266.png

 

Hope it helps.

 

Thanks

Anna

Hi Anna,

 

I've attempted as you suggested (not sure if done correctly) but got back the same error

jeretangwk_0-1620260777347.png

Steps i've attempted

jeretangwk_1-1620260900659.png

 

Maybe I am getting the wrong value in?

jeretangwk_3-1620285727277.png

 

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,904)