[ 
https://jira.codehaus.org/browse/DOXIASITETOOLS-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=321325#comment-321325
 ] 

Michael Osipov commented on DOXIASITETOOLS-81:
----------------------------------------------

Olivier, we can do better. You have fixed DOXIASITETOOLS-80. We know now that 
decoration and publishDate are always populated. Therefore format is always 
safe. getPublishDate return a new object when the internal is null. If you 
really want to double-check for null which should happen anymore, if that case 
I would rather do {{new SDF ( new PublishDate().getFormat() )}} instead of 
using the doc locale.

Correct me if I am wrong!
                
> Make dateFormat use default format from site.xml
> ------------------------------------------------
>
>                 Key: DOXIASITETOOLS-81
>                 URL: https://jira.codehaus.org/browse/DOXIASITETOOLS-81
>             Project: Maven Doxia Sitetools
>          Issue Type: Improvement
>          Components: Site renderer
>    Affects Versions: 1.3
>            Reporter: Michael Osipov
>            Assignee: Olivier Lamy
>             Fix For: 1.4
>
>         Attachments: dateformat.patch
>
>
> Make dateFormat use default format from site.xml/publishDate/@format rather 
> than dependending on the VM's locale.
> This unifies the date format to a single, configurable place: site.xml
> This issue depends on DOXIASITETOOLS-80 which contains further details and 
> advantages of this approach.

--
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

Reply via email to