Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: pass user timezone from app context to the date picker component. (#31831)
GuanMu6c63c6a2215e
diff --git a/web/app/components/datasets/metadata/base/date-picker.tsx b/web/app/components/datasets/metadata/base/date-picker.tsxindex 2f615498592..1d1d532bdef 100644--- a/web/app/components/datasets/metadata/base/date-picker.tsx+++ b/web/app/components/datasets/metadata/base/date-picker.tsx@@ -7,6 +7,7 @@ import dayjs from 'dayjs'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import DatePicker from '@/app/components/base/date-and-time-picker/date-picker'+import { useAppContext } from '@/context/app-context'import useTimestamp from '@/hooks/use-timestamp'import { cn } from '@/utils/classnames'@@ -21,7 +22,7 @@ const WrappedDatePicker = ({onChange,}: Props) => {const { t } = useTranslation()- // const { userProfile: { timezone } } = useAppContext()+ const { userProfile: { timezone } } = useAppContext()const { formatTime: formatTimestamp } = useTimestamp()const handleDateChange = useCallback((date?: dayjs.Dayjs) => {@@ -64,6 +65,7 @@ const WrappedDatePicker = ({return (<DatePickervalue={dayjs(value ? value * 1000 : Date.now())}+ timezone={timezone}onChange={handleDateChange}onClear={handleDateChange}renderTrigger={renderTrigger}diff --git a/web/app/components/tools/workflow-tool/configure-button.spec.tsx b/web/app/components/tools/workflow-tool/configure-button.spec.tsxindex 57105f20847..659aeb4a492 100644--- a/web/app/components/tools/workflow-tool/configure-button.spec.tsx+++ b/web/app/components/tools/workflow-tool/configure-button.spec.tsx@@ -309,7 +309,7 @@ describe('WorkflowToolConfigureButton', () => {it('should render loading state when published and fetching details', async () => {// Arrange- mockFetchWorkflowToolDetailByAppID.mockImplementation(() => new Promise(() => {})) // Never resolves+ mockFetchWorkflowToolDetailByAppID.mockImplementation(() => new Promise(() => { })) // Never resolvesconst props = createDefaultConfigureButtonProps({ published: true })// Act