Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Date format inconsistency between Create and View screen

Olivier MAZEN
Contributor
April 6, 2018

Hello there,

 

I am actually define new Screen in a JIRA SD.

 

For an issue i define, a specific CREATE screen and also a VIEW screen.

In my CREATE screen, i have added a custom field Date picker.

This custom field is also displyed in my VIEW screen.

This field is correctly displayed in both screen.

 

Here is my problem:

When i create a new issue, i set in my custom field this value 03/04/18 (for 3 april 2018.)

But , when i see my issue after creation the value displayed is 03/janv/18

 

I dont get where i do a mistake. The setting in my JIRA administration seems to be ok.

 

If anyone got a trail or something, it will be appriciate :)

 

Olivier

 

 

2 answers

1 accepted

1 vote
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
April 6, 2018

Hi Olivier,

please check the configuration on System -> Look and Feel

At the end of this page you will see the format that users will see on issues :

Immagine.pngProbably you are using default format dd/MMM/yy h:mm a and dd/MMM/yy.

Please changes these two values into :

dd/MM/yy h:mm a

dd/MM/yy

 

This shloud fix your issue.

Ciao,

Fabio

Olivier MAZEN
Contributor
April 6, 2018

Hello Fabio,

thanks for your fast answer.

 

Effectivly the look and feel change my format in VIEW mode, now i get DD/MM/YY.

 

But i still get the wrong value in the field.

 

Now i Have 03/01/18.

 

the month value is still not good.

 

Olivier

Fabio Racobaldo _Herzum_
Community Champion
April 6, 2018

Hi Olivier,

 

which language is set as default in your system?

Olivier MAZEN
Contributor
April 6, 2018

Hi Fabio,

 

Here is my default setting in my applicaiton:

 

setting.JPG

 

As you can see i set French as default language and also in indexation language.

 

Olivier

Fabio Racobaldo _Herzum_
Community Champion
April 6, 2018

Please, could you provide me also the advanced configuration settings? 

Ciao,

Fabio

Olivier MAZEN
Contributor
April 6, 2018

Here you are fabio :)

 

advanced setting.JPG

Olivier 

Fabio Racobaldo _Herzum_
Community Champion
April 6, 2018

Please, could you try to change the following formats as follow ?

jira.date.picker.java.format : dd/MM/yy

jira.date.time.picker.java.format : dd/MM/yy

Please, try to create a new issue and let me know if it fixes your issue.

Ciao,

Fabio

Like Pakawan M. likes this
Olivier MAZEN
Contributor
April 6, 2018

Thanks Fabio.

 

it's work welll, that was the point.

 

Really sorry to miss the uppercase...

 

Olivier

Fabio Racobaldo _Herzum_
Community Champion
April 6, 2018

You're welcome Olivier. 

Please, mark this request as resolved accepting my answer.

Ciao,

Fabio

Olivier MAZEN
Contributor
April 6, 2018

done :)

Max Foerster - K15t
Community Champion
April 6, 2018

Hey Olivier, 

I guess you have to fix some values here. dd/mm/yy ist not a valid SimpleDateFormat in Java and additionally not matching (what the text underneath is telling you by the way) the Javascript format!

dd/mm/yy means translated: Day with leading zero / Minutes / two letter year

so what you have to enter is dd/MM/yy and for the Javascript part that means a corresponding value of %d/%m/%y (which is present). With that value, already existing values in the system should look strange on screens when editing an issues (because it's the server-side setting), e.g. 08/00/18 with zeros for the month in the due date. At least it did on a test system when I tested it.

Same goes for the Date Time picker field :)

Olivier MAZEN
Contributor
April 9, 2018

Thx Max for your reply :)

 

I think i get it now with your explanation :)

 

regards,

 

Olivier

1 vote
Max Foerster - K15t
Community Champion
April 6, 2018

Hi Olivier,

of you want to influence the way it is displayed on the View screen, go the way Fabio suggests in the Look & Feel settings of your instance. If you want to change the way it is display on the Create/Edit screen when selecting a value you will have to adjust the settings in the General Configuration -> Advanced Settings. See my screenshot:

Bildschirmfoto 2018-04-06 um 15.46.45.png

Best, Max

Olivier MAZEN
Contributor
April 6, 2018

Thx max

our post are crossed over :)

 

[Edit]

I already set up the configuration in General Configuration -> Advanced Settings

[/Edit]

 

Olivier

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events