Date objects now are properly converted and stored