Fixes date displaying the wrong date when set in the options