[
https://issues.apache.org/jira/browse/SLING-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581874#action_12581874
]
Felix Meschberger commented on SLING-289:
-----------------------------------------
Problem is that the ScriptableNode.get(String) method does not support the full
range of property types. Fixing this by using the JcrResourceUtil.toJavaObject
method which supports all types properly.
> dates do not come along as dates
> --------------------------------
>
> Key: SLING-289
> URL: https://issues.apache.org/jira/browse/SLING-289
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Michael Marth
> Assignee: Felix Meschberger
>
> (this is on Launchpad revision 629151 running on top of crx)
> my content model has a date-type property. If I access this property in an
> .esp I do not get a date object (but a string I suppose).
> e.g.
> currentNode["mydateproperty"].getFullYear() gives:
> TypeError: Cannot find function getFullYear
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.