chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgr...@apache.org
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 GMT
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;



Mime
View raw message