web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Timezone when update a...
Power Automate
Suggested Answer

Timezone when update a SharePoint list item using API versus using Update Item action

(0) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1
Hi All,
 
I want to update a DateTime SharePoint column named "PreviousVersionModified", but i am a bit confused on the timezones.., now our site collection has this Regional settings:-
 
 
and when i tried to update the column using direct API call, as follow:-
 
 
 
where i am passing this inside the "FieldValue"  >> utcNow('MM/dd/yyyy HH:mm'),, where the datetime will not be added based on the UTC time zone but it will be added based on the site collection time zone, so when i pass the utcNow('MM/dd/yyyy HH:mm') .. the actual date inside the SharePoint back-end that got added will be UTC + 8 hours...
 
But if i update the same column using the SharePoint Update Item action:-
 
 
 
the datetime added at the SharePoint back-end will be in the correct UTC .. when i am talking about the SharePoint back-end , i mean the date/time column value when i retrieve it using API call
 
So, if i want to use API call approach, how i can tell SharePoint that the datetime i am passing should be added based on the UTC time zone and not based on the site collection timezone?
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    11,691 Super User 2025 Season 2 on at
    Please use the ISO 8601 format for all your dates, example: yyyy-MM-ddTHH:mm
     
    In this example:  2024-11-24T18:48:27Z -  the ‘Z’ suffix in this date-time string is used to indicate UTC (Coordinated Universal Time).
     
    For the date in the Update Item action, convert your local time to UTC using the convertToUtc function:
     
    convertToUtc('2024-11-24T12:00', 'Pacific Standard Time')
    2024-11-24T20:00:00.0000000Z

    Function Task
    convertToUtc Convert a timestamp from the source time zone to Universal Time Coordinated (UTC).
     
     
     
    Ellis
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard