mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03: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) => {
|
||||
dateHelpers.setTouched();
|
||||
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