-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: System Administration - Look and Feel
-
None
-
1
-
1
Currently, Jira's default values for the Date/Time field formatting are as follows:
- jira.date.time.picker.java.format: dd/MMM/yy h:mm a
- jira.date.time.picker.javascript.format: %e/%b/%y %I:%M %p
However, this results in an inconsistency in how the dates Java and JavaScript dates are presented by default.
In Java, 'd' is equivalent to JavaScript's '%e' (space padding), while Java's 'dd' would be equivalent to JavaScript's '%d' (zero-padding).
Unix date format
%FORMAT String Description %d is replaced by the day of the month as a decimal number (01-31); %e is replaced by the day of the month as a decimal number (1-31); single digits are space-padded.
Java documentation
Letter Date or Time Component Presentation Examples d Day in month Number 10 Number: For formatting, the number of pattern letters is the minimum number of digits, and shorter numbers are zero-padded to this amount.
The same can be seen in our own documentation, Changing the Due Date Input Format, where the compatible syntax for the '15/Oct/10 8:50 AM' format is demonstrated to be different from the default Jira values.
Preferred Date/Time Value of the jira.date.time.picker.java.format property Value of the jira.date.time.picker.javascript.format property 15/Oct/10 8:50 AM dd/MMM/yy h:mm a %d/%b/%y %l:%M %p
Suggestion
To maintain consistency in how dates are presented in Jira, the default value for the date/time field should be updated either for Java or JavaScript.
- 'jira.date.time.picker.java.format - to use space-padding:
d/MMM/yy h:mm a
- 'jira.date.time.picker.javascript.format' - to use zero-padding:
%d/%b/%y %l:%M %p