diff --git a/packages/block-editor/src/components/publish-date-time-picker/index.js b/packages/block-editor/src/components/publish-date-time-picker/index.js index 57b6428ccd4b07..eeaa5b2daad6fa 100644 --- a/packages/block-editor/src/components/publish-date-time-picker/index.js +++ b/packages/block-editor/src/components/publish-date-time-picker/index.js @@ -17,10 +17,18 @@ export function PublishDateTimePicker( onChange, showPopoverHeaderActions, isCompact, + currentDate, ...additionalProps }, ref ) { + const datePickerProps = { + startOfWeek: getSettings().l10n.startOfWeek, + onChange, + currentDate: isCompact ? undefined : currentDate, + currentTime: isCompact ? currentDate : undefined, + ...additionalProps, + }; const DatePickerComponent = isCompact ? TimePicker : DateTimePicker; return (
@@ -38,11 +46,7 @@ export function PublishDateTimePicker( } onClose={ onClose } /> - +
); }