dchohfi / KeyValueObjectMapping

Automatic KeyValue Object Mapping for Objective-C, parse JSON/plist/Dictionary automatically
http://dchohfi.com/
MIT License
602 stars 90 forks source link

NSDate from unixtime in milliseconds does not work #62

Open ayoze opened 9 years ago

ayoze commented 9 years ago

Hello,

since you are using [NSDate dateWithTimeIntervalSince1970:(NSTimeInterval)] in the DateConverter class, you need to pass this interval in SECONDS, not millis. Do you prefer to stay with seconds (and change the documentation where you say milliseconds) or /1000 the value? I can send a pull request for the second one.