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

Community site session details

Session Id : +nDsHWjTHNHT7xb4E30on/
Power Apps - Building Power Apps
Answered

Difference in Datetime when saving to SharePoint list

Like (0) ShareShare
ReportReport
Posted on 11 Jan 2024 14:05:25 by 83

I collect Date and Time by DatePicker and Dropdowns:

ervinw_0-1704981646969.png

When I save this to a SharePoint list:

 

Set(var_occurence;DateTimeValue(DatePicker2.SelectedDate +
Time(Value(drpHour.Selected.Value);Value(drpMinute.Selected.Value);0)));;

Patch(Oktatas_alkalom;Defaults(Oktatas_alkalom);{Title:"Teszt";Oktatas_azonosito:cbbEducation_3.Selected.'Azonosító ({Identifier})';Időpont:var_occurence});;

 

 I have a total different result:

ervinw_1-1704981787540.png

Do you have any idea, what can cause this issue; how to solve this?
Thank you, Ervin

  • WarrenBelz Profile Picture
    149,183 Most Valuable Professional on 12 Jan 2024 at 09:11:55
    Re: Difference in Datetime when saving to SharePoint list

    @ervinw ,

    Exactly what I suspected - and Pacific is the most extreme as far as behind UTC. What you are seeing is actually correct as far as the SharePoint Server is concerned.

  • ervinw Profile Picture
    83 on 12 Jan 2024 at 08:15:51
    Re: Difference in Datetime when saving to SharePoint list

    Just found it, it was Pacific... :), not Hungarian

  • Verified answer
    Hasrie Profile Picture
    202 on 12 Jan 2024 at 08:15:02
    Re: Difference in Datetime when saving to SharePoint list

    Hi @ervinw the regional setting is in the sharepoint, not under your user account. Check under the "Oktatas_alkalom" Sharepoint > Gear icon > Site Information > Site Settings > View All Site Setting > Regional Setting > Check under TimeZone and Region / Locale

  • ervinw Profile Picture
    83 on 12 Jan 2024 at 08:07:35
    Re: Difference in Datetime when saving to SharePoint list

    I don't know, I have only found my settings here:

    https://myaccount.microsoft.com/settingsandprivacy/language
    Which is Hungarian, similarly like DatePicker's local setting.

     

    (If I store the date as Text, then it's fine.)

  • Verified answer
    WarrenBelz Profile Picture
    149,183 Most Valuable Professional on 12 Jan 2024 at 02:11:00
    Re: Difference in Datetime when saving to SharePoint list

    Hi @ervinw ,

    You can save yourself a Variable as below, but that is not your issue. Have you done a number of different date/times to see if there is a consistent difference (in time) between your selection and the result ? One item I noticed was that you are using European syntax, yet your SharePoint data format is mm/dd/yyyy which is only USA, so what are the Regional Settings on your SharePoint server ?

    With(
     {
     _occurence;
     DateTimeValue(
     DatePicker2.SelectedDate +
     Time(
     Value(drpHour.Selected.Value);
     Value(drpMinute.Selected.Value);
     0
     )
     )
     },
     Patch(
     Oktatas_alkalom;
     Defaults(Oktatas_alkalom);
     {
     Title: "Teszt";
     Oktatas_azonosito: cbbEducation_3.Selected.'AzonosĂ­tĂł ({Identifier})';
     Időpont: _occurence
     }
     )
    );;

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete