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

pierrejeambrun 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 b9cc2224b4b Fix task state store custom expiry datetime missing 
timezone on save (#68823)
b9cc2224b4b is described below

commit b9cc2224b4ba676f229c78a38e300570b4da0abb
Author: Amogh Desai <[email protected]>
AuthorDate: Mon Jun 22 16:57:21 2026 +0530

    Fix task state store custom expiry datetime missing timezone on save 
(#68823)
---
 .../ui/src/pages/TaskStateStore/TaskStateStoreModal.tsx     | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git 
a/airflow-core/src/airflow/ui/src/pages/TaskStateStore/TaskStateStoreModal.tsx 
b/airflow-core/src/airflow/ui/src/pages/TaskStateStore/TaskStateStoreModal.tsx
index dad49ae801e..d7de2358cf0 100644
--- 
a/airflow-core/src/airflow/ui/src/pages/TaskStateStore/TaskStateStoreModal.tsx
+++ 
b/airflow-core/src/airflow/ui/src/pages/TaskStateStore/TaskStateStoreModal.tsx
@@ -117,6 +117,17 @@ export const TaskStateStoreModal = ({
     }),
   );
 
+  const getExpiresAt = () => {
+    if (expiresAt === "never") {
+      return null;
+    }
+    if (expiresAt === "custom") {
+      return dayjs.tz(customExpiresAt, selectedTimezone).toISOString();
+    }
+
+    return "default";
+  };
+
   const onSave = () => {
     setTaskStore({
       dagId,
@@ -124,7 +135,7 @@ export const TaskStateStoreModal = ({
       key: isEditMode ? (storeKey ?? "") : key,
       mapIndex,
       requestBody: {
-        expires_at: expiresAt === "never" ? null : expiresAt === "custom" ? 
customExpiresAt : "default",
+        expires_at: getExpiresAt(),
         value: JSON.parse(value),
       },
       taskId,

Reply via email to