Fixed date bugs on save.