Fixed raw date integer being used instead of NSDate

Seems the date was being sent as an integer rather than a NSDate, I followed the example of the other callers of this function which all convert the date before hand.