Datepicker event triggered two times

This is the react code to render the date time picker, but the on-change event is triggering twice on value change.

And surprisingly it is returning data in different formats.
image

as you can see, same file same line.

Has anyone faced this issue?