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

Pick-up calendar in czech localization gives bad datetime format

      When I want to log work on some issue and want to use the Calendar (date picker), the datetime is returned in a format, that is not validated after submitting.

      When I display the form, the "Start Date" field initially contains a datetime ending with "dop." or "odp." (which is correct czech equivalent for AM/PM). But the calendar returns a datetime string ending with "AM" or "PM". When I try to submit the form with a date entered via Calendar, its is not accepted, an error is raised saying "You must specify a date on which the work occurred.".

      When I browse the source of calendar-cs.js, at the end it contains rows:

      // local AM/PM designators
      Calendar._TT["AM"] = "AM";
      Calendar._TT["PM"] = "PM";
      Calendar._TT["am"] = "am";
      Calendar._TT["pm"] = "pm";

      which is not correct for czech language. I think, this is the problem.

            [JRASERVER-15161] Pick-up calendar in czech localization gives bad datetime format

            This problem is present in most of the calendar translations. I raised it as JRA-15173.

            Dushan Hanuska [Atlassian] added a comment - This problem is present in most of the calendar translations. I raised it as JRA-15173 .

            I have updated the AM/PM symbols for Czech calendar translation. I also updated the short word for week - "týd". I have also removed obsolete files.

            Dushan Hanuska [Atlassian] added a comment - I have updated the AM/PM symbols for Czech calendar translation. I also updated the short word for week - "týd". I have also removed obsolete files.

            Correct rows for czech localization are:

            // local AM/PM designators
            Calendar._TT["AM"] = "dop.";
            Calendar._TT["PM"] = "odp.";
            Calendar._TT["am"] = "dop.";
            Calendar._TT["pm"] = "odp.";

            Josef Šustáček added a comment - Correct rows for czech localization are: // local AM/PM designators Calendar._TT ["AM"] = "dop."; Calendar._TT ["PM"] = "odp."; Calendar._TT ["am"] = "dop."; Calendar._TT ["pm"] = "odp.";

              dushan@atlassian.com Dushan Hanuska [Atlassian]
              01345b0af984 Josef Šustáček
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h