Allow nanoseconds in Date/Time picker

XMLWordPrintable

    • 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

      1. Set the Java value to yyyy/MM/dd HH:mm:ss.SSS
      2. 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:

      https://confluence.atlassian.com/adminjiraserver/configuring-the-look-and-feel-of-your-jira-applications-938846975.html

       

            Assignee:
            Unassigned
            Reporter:
            Sarah A
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: