manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1629521 - in /manifoldcf/trunk: CHANGES.txt connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Date Sun, 05 Oct 2014 18:58:54 GMT
Author: kwright
Date: Sun Oct  5 18:58:53 2014
New Revision: 1629521

URL: http://svn.apache.org/r1629521
Log:
Fix for CONNECTORS-1062.

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1629521&r1=1629520&r2=1629521&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Sun Oct  5 18:58:53 2014
@@ -3,6 +3,10 @@ $Id$
 
 ======================= 2.0-dev =====================
 
+CONNECTORS-1062: Livelink connector date stamps etc should be in
+ms since epoch, not in human-readable timezone-dependent dates.
+(Karl Wright)
+
 CONNECTORS-1037: Add Alfresco webscript connector and authority.
 (Maurizio Pillitu, Rafa Haro, Karl Wright)
 

Modified: manifoldcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java?rev=1629521&r1=1629520&r2=1629521&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
(original)
+++ manifoldcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Sun Oct  5 18:58:53 2014
@@ -1371,7 +1371,7 @@ public class LivelinkConnector extends o
               }
 
               // The date does not need to be parseable
-              sb.append(dt.toString());
+              sb.append(new Long(dt.getTime()).toString());
 
               // PathNameAttributeVersion comes completely from the spec, so we don't
               // have to worry about it changing.  No need, therefore, to parse it during
@@ -4228,9 +4228,9 @@ public class LivelinkConnector extends o
             rd.addField(GENERAL_NAME_FIELD,objInfo.getName());
             rd.addField(GENERAL_DESCRIPTION_FIELD,objInfo.getComments());
             if (creationDate != null)
-              rd.addField(GENERAL_CREATIONDATE_FIELD,creationDate.toString());
+              rd.addField(GENERAL_CREATIONDATE_FIELD,new Long(creationDate.getTime()).toString());
             if (modifyDate != null)
-              rd.addField(GENERAL_MODIFYDATE_FIELD,modifyDate.toString());
+              rd.addField(GENERAL_MODIFYDATE_FIELD,new Long(modifyDate.getTime()).toString());
             if (parentID != null)
               rd.addField(GENERAL_PARENTID,parentID.toString());
             UserInformation owner = llc.getUserInformation(objInfo.getOwnerId().intValue());



Mime
View raw message