Skip to content

Commit dad61a2

Browse files
authored
fix: time field submission error in Chinese locale (invalid input syntax for type time) (nocobase#6511)
1 parent bd51bd5 commit dad61a2

File tree

1 file changed

+2
-2
lines changed
  • packages/core/client/src/schema-component/antd/time-picker

1 file changed

+2
-2
lines changed

packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export const mapTimeFormat = function () {
2727
...props,
2828
format,
2929
inputReadOnly: true,
30-
value: dayjsable(props.value, format),
30+
value: dayjsable(props.value, 'HH:mm:ss'),
3131
onChange: (value: dayjs.Dayjs | dayjs.Dayjs[]) => {
3232
if (onChange) {
33-
onChange(formatDayjsValue(value, format) || null);
33+
onChange(formatDayjsValue(value, 'HH:mm:ss') || null);
3434
}
3535
},
3636
};

0 commit comments

Comments
 (0)