steveahnahn opened a new pull request, #54593:
URL: https://github.com/apache/airflow/pull/54593

   ## Summary
   
   Fixes a bug where datetime parameter inputs in the Airflow UI were applying 
timezone conversion twice, causing incorrect scheduling times. When users 
selected a local time via the datetime picker, the actual trigger time would be 
offset by double the timezone difference.
   
   ## Problem
   1. User picks "5:25 PM" local time in the UI via the datetime selector
   2. `DateTimeInput` converts local (Pacific UTC-7 used) to 
UTC:"2025-08-16T17:25" → "2025-08-17T00:25:00.000Z"
   3. React re-renders, feeding the UTC value back as display value
   4. `DateTimeInput` displays "2025-08-17T00:25" as local time
   5. User interaction re-triggers onChange again, converting the new datetime 
to UTC again (interpreted as local time) "2025-08-17T00:25" → 
"2025-08-17T07:25:00.000Z"
   6. Resulting in 2 UTC time conversions
   
   ## Solution
   1. `DateTimeInput`: Remove timezone conversion from onChange handler - pass 
through raw user selected values
   2. `FieldDateTime`: Handle timezone conversion only once when storing the 
final value
   3. DAG schedule via UTC timezone, user only sees their local time
   
   ## Testing
     - Manual testing with Pacific (UTC-7) timezone and verified DAG triggers 
execute at correct times
     - Confirmed no double conversion in browser console logs
     
   ## Related Issues
   resolves #54466
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to