Unified the processing of an unjust date on input and output in a datetime-local state.