Date picker does not save the right date

@aaronojeda, thanks for posting! Could you please check if the following topic is a duplicate?