Author: kwin
Date: Thu Sep  3 15:13:35 2015
New Revision: 1701046

URL: http://svn.apache.org/r1701046
Log:
SLING-4347 clarify that timezone offsets are only kept when using ISO8601

Modified:
    
sling/site/trunk/content/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.mdtext

Modified: 
sling/site/trunk/content/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.mdtext
URL: 
http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.mdtext?rev=1701046&r1=1701045&r2=1701046&view=diff
==============================================================================
--- 
sling/site/trunk/content/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.mdtext
 (original)
+++ 
sling/site/trunk/content/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.mdtext
 Thu Sep  3 15:13:35 2015
@@ -201,6 +201,7 @@ Assuming the user selected a file named
 Parameters providing date/time values to be stored in JCR properties of type 
*Date* require special handling. The problem is that there are a number of 
formats to represent such date/time values. To account for this open-ended list 
of formats, the Sling Post Servlet supports configurability of the process of 
parsing strings into `Calendar` objects.
     
 The Sling Post Servlet configuration property `servlet.post.dateFormats` takes 
a list of format strings which are used to setup `java.text.SimpleDateFormat` 
instances for parsing date/time string representations. A special format string 
`ISO8601` is supported to indicate the string to be parsed as a JCR standard 
string representation of a _Date_ property.
+Only the latter supports storing the actual timezone offset. All the parsers 
leveraging `java.text.SimpleDateFormat` loose the given timezone and convert 
that just to the default timezone of the JRE (when creating the `Calendar` out 
of the `Date`, because `java.lang.Date` is not carrying any timezone 
information).
     
 The default list of configured date/time parse pattern is:
     


Reply via email to