-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Java API
-
1
Issue Summary
As a Jira administrator, I would like to use the following format for jira.date.picker.java.format and jira.date.time.picker.java.format:
yyyy/MM/dd HH:mm:ss.SSS
But there does not seem to be a corresponding format for jira.date.picker.javascript.format and jira.date.time.picker.javascript.format
This will then cause errors when trying to use the date/time picker in the UI. According the Atlassian article below, the format should be using https://www.adminschoice.com/unix-date-format-examples, but this format does not work:
%Y/%m/%d %H:%M:%S.%N
was hoping to do something like this:
%Y/%m/%d %H:%M:%S.%3N
Steps to Reproduce
- Set the Java value to yyyy/MM/dd HH:mm:ss.SSS
- Set the Javascript value to %Y/%m/%d %H:%M:%S.%N or %Y/%m/%d %H:%M:%S.%3N
Expected Results
The date/time picker values will match and will be able to use all available options down to nanoseconds.
Actual Results
The values give an error and do not work.
Workaround
Workaround discovered: use this format to achieve nanoseconds:
%Y/%m/%d %H:%M:%S.%S
Links
https://confluence.atlassian.com/jira/changing-the-due-date-input-format-192536.html
In this article it states:
- For Java formats, specify date/time formats based on the Java SimpleDateFormat.
- For JavaScript formats, specify date/time formats based on the Unix date format.