mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Remove timezone formatting for date picker entry. (#12163)
This commit is contained in:
@@ -27,7 +27,7 @@ function DateTimePicker({ dateFieldName, timeFieldName, label }) {
|
|||||||
const onDateChange = (inputDate, newDate) => {
|
const onDateChange = (inputDate, newDate) => {
|
||||||
dateHelpers.setTouched();
|
dateHelpers.setTouched();
|
||||||
if (isValidDate(newDate) && inputDate === yyyyMMddFormat(newDate)) {
|
if (isValidDate(newDate) && inputDate === yyyyMMddFormat(newDate)) {
|
||||||
dateHelpers.setValue(new Date(newDate).toISOString().split('T')[0]);
|
dateHelpers.setValue(inputDate);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user