@@ -403,13 +403,13 @@ void *pool = objc_autoreleasePoolPush(); [ret appendFormat: @"; Domain=%@; Path=%@", _domain, _path]; if (_expires != nil) - [ret appendString: - [_expires dateStringWithFormat: @"; Expires=%a, %d %b %Y " - @"%H:%M:%S +0000"]]; + [ret appendString: [(OFDate *)_expires + dateStringWithFormat: @"; Expires=%a, %d %b %Y " + @"%H:%M:%S +0000"]]; if (_secure) [ret appendString: @"; Secure"]; if (_HTTPOnly)