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 / [EDIT FORM] Time input...
Power Apps
Answered

[EDIT FORM] Time input increments by 1 hour at each refresh

(0) ShareShare
ReportReport
Posted on by 58

Hi PowerApps Community!

 

[CONTEXT]

I developed a PowerApps Canvas App for my company.

The database of the app is an Excel file located in a OneDrive folder. 

The app contains an Edit Form, which is connected to the database, where users can select the start time of several events through drop-downs (one for the hour, one for the minute). 

(Pictures are below!)

 

[PROBLEM]

The form is linked to a drop-down where users can select a flight number. Then, according to the flight number selected, the data of the flight is retrieved from the database and displayed in the form, so that the user can modify the data of the flight. 

 

Since I think it is much easier to understand a problem with some pictures, please refer to the pictures below when reading this paragraph.

(1): Data from flight 38094 is displayed. Time for ATA & ATD is 21:00 (red box). 

(2): Switch to flight 38095

(3): Data from flight 38095 is displayed

(4): When switching back to flight 38094, the TIME HAS INCREMENTED AUTOMATICALLY by one hour.. Therefore becoming 22:00.

 

I carried out an additional analysis and the outcome is the following: the time increment happens when the data from the database is loaded into the form (and not the opposite). Therefore, somehow, PowerApps adds 1 hour to the data from the database.

 

Keep in mind that the drop-downs for the time are actually part of standard "Date & Time" datacards which were customized with the following parameters: the Date Pickers were set to invisible, and their Date Format were set to DateTime.UTC.

 

If I can provide any additional piece of information that could help, please let me now!

 

automatictimeincrement.png

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @alexlrca ,

     

    Is there the form submitted to Excel before switching flights? Is your local time zone one hour apart in UTC?

    I have made a test, the date increment happens when submitting the UTC data from form to excel.

    Please check the time zone of Office365, set it to your local time zone. In PowerApps, also set the time zone of DatePicker to Local.

    Snipaste_2019-12-18_17-44-20.png

    Best regards,

    Sik

  • alexlrca Profile Picture
    58 on at

    Hi @v-siky-msft ,

     

    First of all, thank you for your reply!

     

    • The form is submitted to Excel when selecting the Flights Dropdown (the SubmitForm function is written in the OnSelect property of the Flights Dropdown).

     

    • In my test: I selected 22:00 in a dropdown. Then, I switched flights (the data is sent to Excel). In Excel, the data saved is 22:00, which is the time I entered in the dropdown. Then, I switched flights again and came back to the previous flight. The dropdown shows 23:00. But still, in the Excel file, the data is 22:00.

     

    • Indeed, my local time is UTC+1. However, the app may be used in many locations worldwide, with different time zones. This is why I set the time zone of the DatePickers to UTC.

     

    • Unfortunately, I don't have access to the Language and Time Zone settings in the Settings tab of Office365. I don't have admin privilege, maybe that's the root cause?

     

    Best regards,

     

    Alex

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 514

#2
WarrenBelz Profile Picture

WarrenBelz 419 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 295

Last 30 days Overall leaderboard