Prab-27 commented on code in PR #66852:
URL: https://github.com/apache/airflow/pull/66852#discussion_r3234516678


##########
airflow-core/src/airflow/ui/src/components/DateTimeInput.tsx:
##########
@@ -54,9 +54,22 @@ export const DateTimeInput = forwardRef<HTMLInputElement, 
Props>(({ onChange, va
     debounceDelay,
   );
 
+  const onPaste = (event: ClipboardEvent<HTMLInputElement>) => {
+    const pasted = event.clipboardData.getData("text");
+    if (!pasted) return;
+    const parsed = dayjs.tz(pasted, selectedTimezone);
+    if (!parsed.isValid()) return;
+    event.preventDefault();
+    const local = parsed.tz(selectedTimezone).format(DEFAULT_DATETIME_FORMAT);
+    const utc = parsed.toISOString();
+    setDisplayDate(local);
+    onChange?.({ ...event, target: { ...event.target, value: utc } } as 
unknown as ChangeEvent<HTMLInputElement>);
+  };

Review Comment:
   @kyupark some unrelated chnages 
   It seems like these are related to #66851 
   Would you please check ? 
   
   



-- 
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