@@ -44,7 +44,7 @@ export function RangeDatePicker({className, ...props}: RangeDatePickerProps) {
) : (
)}
- {state.hasTime && (
+ {state.formatInfo.hasTime && (
diff --git a/src/components/RelativeDatePicker/RelativeDatePicker.tsx b/src/components/RelativeDatePicker/RelativeDatePicker.tsx
index c41aa28..13c1cac 100644
--- a/src/components/RelativeDatePicker/RelativeDatePicker.tsx
+++ b/src/components/RelativeDatePicker/RelativeDatePicker.tsx
@@ -65,7 +65,8 @@ export function RelativeDatePicker(props: RelativeDatePickerProps) {
const handleRef = useForkRef(anchorRef, groupProps.ref);
const isMobile = useMobile();
- const isOnlyTime = state.datePickerState.hasTime && !state.datePickerState.hasDate;
+ const isOnlyTime =
+ state.datePickerState.formatInfo.hasTime && !state.datePickerState.formatInfo.hasDate;
return (