[
https://issues.apache.org/jira/browse/CONNECTORS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592228#comment-13592228
]
Karl Wright commented on CONNECTORS-657:
----------------------------------------
Ok, it looks like what has happened is that each connector has grown
organically in incompatible ways. Here's the jcifs code:
{code}
rd.addField("lastModified", new
Date(file.lastModified()).toString());
{code}
... where file.lastModified() is a long value ms. since epoch.
Here's the wiki connector:
{code}
rd.addField("last-modified",lastModified);
{code}
... where lastModified is a direct parse of the XML returned from the wiki API.
These we will have to leave alone in order to maintain backwards compatibility.
But I see no reason why we can't proceed as I've proposed above and provide a
general way of handling last-modified dates in a specific solr attribute
(probably defined on the "Schema" tab).
Thoughts?
> Normalize date/timestamps format across connectors
> --------------------------------------------------
>
> Key: CONNECTORS-657
> URL: https://issues.apache.org/jira/browse/CONNECTORS-657
> Project: ManifoldCF
> Issue Type: Bug
> Reporter: Maciej Lizewski
>
> several connectors add datetime attributes to RepositoryDocument, but they do
> not have common format. Examples:
> WikiConnector adds last-updated: 2010-10-10T12:34:00Z
> SharedDriveConnector adds last-updated: Thu May 28 17:39:46 CEST 2009
> and so on.
> Solr requires all date/datetime fields to be passed as YYYY-MM-DDTHH:II:SSZ
> We need to standardize formats (my recommendation is solr format) or allow to
> add Date attributes to RepositoryDocument and move formatting to
> OutputConnector.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira