Hi every one, running with a issue:
Actually as per business user will select only one date field, but selected date and time has to update/Set in to another date and time field.
so,
Patching Date and time field value in to another date and time field.
{
Title: DataCardValue4.Text,
CopiedDate:(DateValue2.SelectedDate)+Time(Value(HourValue2.Selected.Value), Value(MinuteValue2.Selected.Value),0)
}
CoipedDate is the target field in SP, this need to update from another, so assigning here directly source date time DateCardsValues
With the above code working fine but issue is, it saves one day earlier.
Example:
| Source: Selecting Date and Time: | Target: Showing date and time value | Status |
| 12/12/2019 00:00 AM | 12/12/2019 00:00 AM | expected(Fine) |
| 12/12/2019 12:00 PM | 12/12/2019 12:00 PM | expected(Fine) |
| 12/12/2019 23:30 PM | 11/12/2019 12:30 PM | Not expected, saving one day earlier(past). |
From 00:00 AM to 23:29 PM (Hours 29 minutes) its saving fine in SharePoint.
but if we save from 23:30 PM to 23:59 PM its saving one day earlier with same time.
as we see 3rd item saving with earlier (past) date.
Really don`t understand what`s wrong here to saving with earlier date.
Configurations:
1.SharePoint regional settings in (UTC+10:00)Brisbane //as per business
2.DateTimeZone in Powerapps : DateTimeZone.Local
how to save with selected day with same time ...?
If anyone can help me, it would be very appreciated.
Thanks,
Mk