Fixed bug in NSDate serialization

This reverts commit 99733d291204ccd1345f1a2e46facd57ab9981b2.