fix bug where value in datetime picker would appear lower than supposed to