mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 06:50:51 +00:00
Fix datepicker format
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
This commit is contained in:
parent
4ebeda2256
commit
dc96661182
@ -167,7 +167,7 @@ const GenericInput = ({
|
|||||||
hint={hint}
|
hint={hint}
|
||||||
name={name}
|
name={name}
|
||||||
onChange={date => {
|
onChange={date => {
|
||||||
const formattedDate = date.toISOString();
|
const formattedDate = date.toISOString().split('T')[0];
|
||||||
|
|
||||||
onChange({ target: { name, value: formattedDate, type } });
|
onChange({ target: { name, value: formattedDate, type } });
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user