Adjust datetime attributes for models and templates.