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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Daylight savings time ...
Power Apps
Answered

Daylight savings time problem - one hour off

(0) ShareShare
ReportReport
Posted on by 1,011

 

I have a PowerApps form that sets the date and time for a SharePoint list item. The update property for the data card is shown below, referencing the three controls on the card.

 

Until today, this had been working fine for thousands of items entered but since daylight savings time (I'm in Eastern Standard time zone), this method of combining the date, hour & minute results in a time that is one hour ahead of the correct time.

 

//update property of datacard
DateValue3_1.SelectedDate + Time( Value(HourValue3_1.Selected.Value), Value(MinuteValue3_1.Selected.Value), 0 )

 

For example, the user enters 3/10/20019  08:44 as shown below and the SharePoint list item is updated to 3/10/20019  09:44

DaylightSavingsTime.png

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @PhilD 

    Your results are actually correct based on your formula.

    If you add 8:44 to 12:00 on 3/10/2019 you will get 9:44.  Because the time changed, there is 1 hour lost.

    If you add 1 hour to 12:00 on 3/10/2019 you get 1:00 AM

    If you add 2 hours to 12:00 on 3/10/2019 you get 3:00 AM (time change at 2:00 AM)

    If you were to add 8:44 to 2:00 on 3/10/2019, you would get 10:44 because it is after the time change at 2:00 AM (no hour lost).

     

    I hope this sheds some light for you...just in time!

  • PhilD Profile Picture
    1,011 on at

    Very good, thank you for this answer! I hadn't properly considered that the 12:00 part of the date was actually denoting a time prior to the time change.

     

    Before reading this, I rushed out a fix using the code below which is working fine (for reasons related to your answer I suppose). This builds and populates a proper date time value in the SharePoint list column. Let me know if you think there are any other implications of using this...

     

    DateTimeValue(
     DateValue3_1.SelectedDate & 
     " " 
     &
     Time(
     Value(HourValue3_1.Selected.Value), 
     Value(MinuteValue3_1.Selected.Value), 
     0
     )
    )
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @PhilD 

    Yes, that should work for you because there, you are building the date/time as a string rather than calculating it. Then, obviously, converting it to a value.  Which is, I believe, what you really wanted to begin with - actual 8:44 rather than 12:00 + 8:44.

  • PhilD Profile Picture
    1,011 on at

    Yes, you are right. This is actually more precisely what I wanted all along.

     

    Thanks again for helping me understand why this happened.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard