Bug Fixes datetime: do not reset to am when changing the hour and pm is set (#22016) (1dac5a4), closes #19175 #19260 #20026 #16630