manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1631720 - /manifoldcf/trunk/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Date Tue, 14 Oct 2014 11:15:05 GMT
Author: kwright
Date: Tue Oct 14 11:15:05 2014
New Revision: 1631720

URL: http://svn.apache.org/r1631720
Log:
Use ISO 8601 date rather than ms siiince epoch

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

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=1631720&r1=1631719&r2=1631720&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
Tue Oct 14 11:15:05 2014
@@ -26,6 +26,7 @@ import org.apache.manifoldcf.crawler.sys
 import org.apache.manifoldcf.core.common.XThreadInputStream;
 import org.apache.manifoldcf.core.common.XThreadOutputStream;
 import org.apache.manifoldcf.core.common.InterruptibleSocketFactory;
+import org.apache.manifoldcf.core.common.DateParser;
 
 import org.apache.manifoldcf.livelink.*;
 
@@ -4279,9 +4280,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,new Long(creationDate.getTime()).toString());
+        rd.addField(GENERAL_CREATIONDATE_FIELD,DateParser.formatISO8601Date(creationDate));
       if (modifyDate != null)
-        rd.addField(GENERAL_MODIFYDATE_FIELD,new Long(modifyDate.getTime()).toString());
+        rd.addField(GENERAL_MODIFYDATE_FIELD,DateParser.formatISO8601Date(modifyDate));
       if (parentID != null)
         rd.addField(GENERAL_PARENTID,parentID.toString());
       UserInformation owner = llc.getUserInformation(objInfo.getOwnerId().intValue());



Mime
View raw message