You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jason E Bailey (JIRA)" <ji...@apache.org> on 2018/04/17 17:16:00 UTC
[jira] [Updated] (SLING-7590) Content Loaders not respecting time
zone for Dates
[ https://issues.apache.org/jira/browse/SLING-7590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason E Bailey updated SLING-7590:
----------------------------------
Description:
When importing content, the JCR supports the setting of the time zone for a jcr Date. However we currently have several processes that fail to set the time zone correctly.
org.apache.sling.jcr.contentparser.impl.ParserHelper
org.apache.sling.jcr.contentloader.internal.DefaultContentCreator
org.apache.sling.servlets.post.impl.helper.DateParser
Take a String based time representation that includes a time offset and convert it to Date that looses that information, before conversion to a Calendar object.
was:
When importing content, the JCR supports the setting of the time zone for a jcr Date. However we currently have several processes that fail to set the time zone correctly.
org.apache.sling.jcr.contentparser.impl.ParserHelper in sling-org-apache-sling-jcr-contentparser
org.apache.sling.jcr.contentloader.internal.DefaultContentCreator in sling-org-apache-sling-jcr-contentloader
Both take a String based time representation that includes a time offset and convert it to Date that looses that information, before conversion to a Calendar object.
> Content Loaders not respecting time zone for Dates
> --------------------------------------------------
>
> Key: SLING-7590
> URL: https://issues.apache.org/jira/browse/SLING-7590
> Project: Sling
> Issue Type: Improvement
> Reporter: Jason E Bailey
> Priority: Major
>
> When importing content, the JCR supports the setting of the time zone for a jcr Date. However we currently have several processes that fail to set the time zone correctly.
> org.apache.sling.jcr.contentparser.impl.ParserHelper
> org.apache.sling.jcr.contentloader.internal.DefaultContentCreator
> org.apache.sling.servlets.post.impl.helper.DateParser
> Take a String based time representation that includes a time offset and convert it to Date that looses that information, before conversion to a Calendar object.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)