Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-36387

Date/Time picker JavaScript format for jira.date.time.picker.java.format is incorrect

XMLWordPrintable

      Summary

      The JavaScript format does not match the Java format for jira.date.time.picker.java.format as below:

              <property>
                  <key>jira.date.time.picker.java.format</key>
                  <name>DateTime Picker Format (Java)</name>
                  <description>This part is only for the Java (server side) generated datetimes. Note that this should correspond to the javascript datetime picker format (jira.date.time.picker.javascript.format) setting.</description>
                  <descriptionKey>jira.date.time.picker.java.format.desc</descriptionKey>
                  <default-value>dd/MMM/yy h:mm a</default-value>
                  <type>string</type>
                  <validator>com.atlassian.validation.SimpleDateFormatValidator</validator>
                  <admin-editable>false</admin-editable>
                  <sysadmin-editable>true</sysadmin-editable>
                  <requires-restart>false</requires-restart>
              </property>
              <property>
                  <key>jira.date.time.picker.javascript.format</key>
                  <name>DateTime Picker Format (JavaScript)</name>
                  <description>This part is only for the JavaScript (client side) generated date times. Note that this should correspond to the java datetime picker format (jira.date.time.picker.java.format) setting.</description>
                  <descriptionKey>jira.date.time.picker.javascript.format.desc</descriptionKey>
                  <default-value>%e/%b/%y %I:%M %p</default-value>
                  <type>string</type>
                  <admin-editable>false</admin-editable>
                  <sysadmin-editable>true</sysadmin-editable>
                  <requires-restart>false</requires-restart>
              </property>
      

      Expected Behaviour

      Either the Java format should be dd/MMM/yy hh:mm a or the JavaScript format should be %e/%b/%y %l:%M %p

      It looks like it is set to %I instead of %l perhaps as an accident as they can look identical depending upon the font used?

      $ date +'%e/%b/%y %I:%M %p'
       7/Jan/14 05:51 pm
      $ date +'%e/%b/%y %l:%M %p'
       7/Jan/14  5:51 pm
      

      Actual Behaviour

      See the file excerpt above.

      Replication Steps

      This is in JIRA 6.1.5 jpm.xml, reviewing the file for that version shows the error.

      Notes

      This behaviour is explained in more detail in Changing the Due Date Input Format.

              Unassigned Unassigned
              dcurrie@atlassian.com Dave C
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: