From f0c7a45706463e58cba77f661a6139ae82716e12 Mon Sep 17 00:00:00 2001 From: Adit Syed Afnan <111628226+S-A-Adit@users.noreply.github.com> Date: Fri, 7 Aug 2026 07:29:34 -0400 Subject: [PATCH] fix(editor): allow selection of earlier dates(#15436) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description This PR fixes a bug where the date picker inside the property panel restricted users from selecting dates prior to 1970. **Changes:** - Updated the minimum date constant (`DATE_MIN`) in the date picker calendar from `1970-01-01` to `1900-01-01`. - This allows a broader historical range of dates to be selected, properly supporting birth dates and historical events. ### Related Issues Fixes #15435 ### Type of Change - [x] Bug fix (non-breaking change which fixes an issue) ### Testing Done - Verified that the property date picker allows navigation and selection of years prior to 1970. ## Summary by CodeRabbit * **Bug Fixes** * Expanded the date picker’s supported range to include dates from January 1, 1900. --- .../frontend/component/src/ui/date-picker/calendar/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/component/src/ui/date-picker/calendar/constants.ts b/packages/frontend/component/src/ui/date-picker/calendar/constants.ts index 2b0c8736dd..15ea08ba3a 100644 --- a/packages/frontend/component/src/ui/date-picker/calendar/constants.ts +++ b/packages/frontend/component/src/ui/date-picker/calendar/constants.ts @@ -1,6 +1,6 @@ import dayjs from 'dayjs'; -export const DATE_MIN = '1970-01-01'; +export const DATE_MIN = '1900-01-01'; export const DATE_MAX = '2099-12-31'; export const YEAR_MIN = dayjs(DATE_MIN).year();