-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.0, 4.4.5, 5.1, 5.2, 6.0, 6.1, 6.1.5
-
4.04
-
2
-
Severity 3 - Minor
-
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.