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

The time picker from the datepicker does not display hours in 0-23 format, but always in AM/PM form, even if the date format is set to display hours in the 0-23 range

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Solved By
    • Major
    • None
    • 8.4.4
    • None
    • Unknown
    • Awaiting Committer feedback

    Description

      To reproduce:

      • add a date field in a class / application
      • set the format to "dd/MM/yyyy HH:mm", which means hours should be displayed in 0-23 interval ( as per http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html )
      • edit an object of this class in inline edit form, which displays the datepicker: in the date picker, the hour in the time picker is displayed in the AM/PM form, even if the format of the time says otherwise.

      However, this does not impact the display of the date besides the picker, the format of the time is correct apart the picker.

      As a side note, if we try to set the date format in a way that is compatible with the datepicker (AM/PM), it won't work, bug XWIKI-14064 will be hit.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: