Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3059

More hard coded Date Format in templates.

    XMLWordPrintable

Details

    Description

      Right the format is hardcoded to be dd/MM/yyyy. Make it generic by using the formatDate() API with a single parameter (ie without specifying the format). The format will then be taken from the "dateformat" property of XWiki.XWikiPreferences and if it doens't exist it'll default to "yyyy/MM/dd HH:mm".

      Attachments

        1. dateformat_templates.patch
          4 kB
          Kendal Montgomery
        2. right dateformat.jpg
          152 kB
          Kendal Montgomery
        3. wrong dateformat.jpg
          157 kB
          Kendal Montgomery

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              thewizk Kendal Montgomery
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: