Allow for datetime objects when persisting