Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DB42112E4 for ; Mon, 5 May 2014 10:04:08 +0000 (UTC) Received: (qmail 35752 invoked by uid 500); 5 May 2014 10:04:06 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 35705 invoked by uid 500); 5 May 2014 10:04:03 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 35692 invoked by uid 99); 5 May 2014 10:04:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 10:04:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 10:04:00 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 853A623888E4; Mon, 5 May 2014 10:03:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1592472 - in /chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser: CMISBroswerFormDataWriter.m CMISBrowserUtil.m Date: Mon, 05 May 2014 10:03:40 -0000 To: commits@chemistry.apache.org From: lgross@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140505100340.853A623888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: lgross Date: Mon May 5 10:03:40 2014 New Revision: 1592472 URL: http://svn.apache.org/r1592472 Log: CMIS-795: Browser Binding: Issue when writing date property Modified: chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBroswerFormDataWriter.m chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBrowserUtil.m Modified: chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBroswerFormDataWriter.m URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBroswerFormDataWriter.m?rev=1592472&r1=1592471&r2=1592472&view=diff ============================================================================== --- chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBroswerFormDataWriter.m (original) +++ chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBroswerFormDataWriter.m Mon May 5 10:03:40 2014 @@ -130,7 +130,7 @@ NSString * const kCMISFormDataContentTyp return [value boolValue] ? kCMISParameterValueTrue : kCMISParameterValueFalse; } else if (type == CMISPropertyTypeDateTime) { if ([value isKindOfClass:NSDate.class]) { - return [NSNumber numberWithDouble:[(NSDate *)value timeIntervalSince1970] * 1000.0].description; //seconds to milliseconds + return [NSNumber numberWithUnsignedLongLong:[(NSDate *)value timeIntervalSince1970] * 1000].description; //seconds to milliseconds } else { CMISLogWarning(@"value is not a date!"); } Modified: chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBrowserUtil.m URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBrowserUtil.m?rev=1592472&r1=1592471&r2=1592472&view=diff ============================================================================== --- chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBrowserUtil.m (original) +++ chemistry/objectivecmis/branches/browser-binding/ObjectiveCMIS/Bindings/Browser/CMISBrowserUtil.m Mon May 5 10:03:40 2014 @@ -741,7 +741,7 @@ NSString * const kCMISBrowserMaxValueJSO NSMutableArray *dates = [[NSMutableArray alloc] initWithCapacity:numbers.count]; for (NSNumber *miliseconds in numbers) { - NSDate *date = [NSDate dateWithTimeIntervalSince1970:[miliseconds doubleValue] / 1000.0]; // miliseconds to seconds + NSDate *date = [NSDate dateWithTimeIntervalSince1970:[miliseconds unsignedLongLongValue] / 1000.0]; // miliseconds to seconds [dates addObject:date]; } return dates;