Date validation ignores localization. How to fix this?

l have installed Jira with German a server language. The date picker uses German month names, but the validation on submit still want the default English names.

Is there away to fix this?

 

Regards

Matthias

2 answers

1 accepted

1 vote
Accepted answer

What validation are you doing?

Also, have you checked all the language and date formatting settings in Admin -> general config (and under the advanced settings in there too)?

For example, l have tried to add a new version to my project. I have selected start and end date with help of the datepicker. He fills the fields in configured format. When I hit the create button it is blocked with the message that I have to enter in d/MMM/yy format.

After that l have reconfigured the formating according to the link below (German), but the message stayed the same.

http://www.communardo.de/home/techblog/2013/06/21/jira-datumsformate-auf-deutsche-syntax-umstellen/

Ok, so what exactly are the steps you do to fill in the date? What dies it display as you go through the process, and does it work if you type the date in the English contractions?

Ok, so what exactly are the steps you do to fill in the date? What dies it display as you go through the process, and does it work if you type the date in the English contractions?

Please see the screenshots in my answers for a step by step description.

Ok, could you go to Admin -> General configuration -> Advanced and check what all the date settings in there are?

I have found the issue. The "jira.date.picker.java.format" was not set. Maybe I have missed to hit update in the first place. Now I have reset the date formats to the default settings and was able to identify where my initial problem came from. For the month march the date picker (and edit window) generates 01/Mrz/15, but the validation wants to see 1/Mär/15. As far as I know, 3 letter abbreviations are not standardized in Germany. Both variants would be fine. Anyway, this date format is not common in Germany. Maybe default formats as descipted in the link would be better defaults. Another good default would be formats like defined in ISO 8601. I found another trap with the formatting: If the "jira.date.picker.javascript.format" format has a space in the beginning, the date picker will create the date including the space. The validation will decline this and it's hard to spot. Maybe it would help to strip leading and ending whitespaces. Thank you for your help and patience.

No problem. I've always found it monumentally stupid that javascript and java do it totally differently and I will argue at length that you shouldn't have to set them all separately. In any application. (and I completely agree about the stripping spaces too - that would be nice)

I think I can't add images to a comment, so please see my step by step screenshots in this answer.

Please note that the wrong url warning in the first screenshot, is not the trigger.

Step1.pngStep2.pngStep3.pngStep4.pngStep5.pngStep6.pngStep7.png

 

Obsolete. See comment in accepted answer.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,492 views 15 20
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you