I collect Date and Time by DatePicker and Dropdowns:
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:
Do you have any idea, what can cause this issue; how to solve this?
Thank you, Ervin
@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.
Just found it, it was Pacific... :), not Hungarian
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
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.)
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
}
)
);;
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473