Skip to content

Commit

Permalink
See #14. Fix bug in serialization of a Date.
Browse files Browse the repository at this point in the history
It was serializing as decimal in seconds (with milliseconds perdition) while it should have been an integer in milliseconds.
  • Loading branch information
Glavin001 committed Aug 12, 2014
1 parent be93e20 commit 93e2fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/Transforms/SLDateTransform.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ + (NSDictionary *)serialize:(NSDate *)deserialized
// For date conversion
NSTimeInterval ti = [deserialized timeIntervalSince1970];
return @{
@"$date": [NSNumber numberWithDouble:ti]
@"$date": @([[NSNumber numberWithDouble:ti] doubleValue] * 1000)
};
}

Expand Down

0 comments on commit 93e2fe7

Please sign in to comment.