refactor Date.set_attributes
confuse code climate
Merge pull request #3 from marsec/refactoring

A bit refactoring