[ 
https://issues.apache.org/jira/browse/SLING-6428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15811994#comment-15811994
 ] 

ASF GitHub Bot commented on SLING-6428:
---------------------------------------

GitHub user vladbailescu opened a pull request:

    https://github.com/apache/sling/pull/197

    SLING-6428 - DateFormat is printed when date-value is empty

    * Updated TCK to include tests for empty/undefined formatting input values
    * Updated implementation to return empty when formatting input is 
null/undefined
    * Added missing javadocs

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vladbailescu/sling issue/SLING-6428

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/197.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #197
    
----
commit 8295230ff8472366f07e938ec81fe75f05ab8ca3
Author: vladbailescu <baile...@adobe.com>
Date:   2017-01-09T15:07:19Z

    SLING-6428 - DateFormat is printed when date-value is empty
    * Updated TCK to include tests for empty/undefined formatting input values
    * Updated implementation to return empty when formatting input is 
null/undefined
    * Added missing javadocs

----


> DateFormat is printed when date-value is empty
> ----------------------------------------------
>
>                 Key: SLING-6428
>                 URL: https://issues.apache.org/jira/browse/SLING-6428
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Feike Visser
>
> When the format-value emtpy, the date-format is printed.
> Example
> {code}
> <div data-sly-use.date="java.util.Date">
> ${'yyyy-MM-dd' @ format=date1}
> </div>
> {code}
> In my view the date-format should not be printed, never.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to