NSDate+match mac and iOS