Fixed problem with saving dates after month changed