This is an automated email from the ASF dual-hosted git repository.

bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 83eaca08260 +Parse string with timezone to dayjs object, rather than 
create dayjs object and convert it (#57880)
83eaca08260 is described below

commit 83eaca08260d26badd93ec2e56a39299c402196a
Author: Tomi <[email protected]>
AuthorDate: Thu Nov 20 21:11:51 2025 +0200

    +Parse string with timezone to dayjs object, rather than create dayjs 
object and convert it (#57880)
---
 airflow-core/src/airflow/ui/src/components/DateTimeInput.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/ui/src/components/DateTimeInput.tsx 
b/airflow-core/src/airflow/ui/src/components/DateTimeInput.tsx
index 3ee9dbf62c8..cd7bd6ca8c7 100644
--- a/airflow-core/src/airflow/ui/src/components/DateTimeInput.tsx
+++ b/airflow-core/src/airflow/ui/src/components/DateTimeInput.tsx
@@ -47,7 +47,7 @@ export const DateTimeInput = forwardRef<HTMLInputElement, 
Props>(({ onChange, va
           target: {
             ...event.target,
             value: dayjs(event.target.value).isValid()
-              ? dayjs(event.target.value).tz(selectedTimezone, 
true).toISOString()
+              ? dayjs.tz(event.target.value, selectedTimezone).toISOString() 
// UI Timezone -> Utc -> yyyy-mm-ddThh:mm
               : "",
           },
         })

Reply via email to