mirror of
https://github.com/strapi/strapi.git
synced 2025-09-21 22:40:24 +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}
|
||||
name={name}
|
||||
onChange={date => {
|
||||
const formattedDate = date.toISOString();
|
||||
const formattedDate = date.toISOString().split('T')[0];
|
||||
|
||||
onChange({ target: { name, value: formattedDate, type } });
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user