The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Issue Dates are Incoherant

S_ B_ Sebrick
January 17, 2024

Both my custom date fields and my system date fields are behaving strangely. 

I'm getting impossible dates / times, like "45/14/2023 4:45 PM", "41/29/2023 6:41 PM" or "00/08/2023"

I've checked our SQL database, and the dates are being recorded correctly. So, the issue must be somewhere between the java and JavaScript interactions? 

Here are my current date-related System settings.

"Look and Feel" Day/Month/Year format is set to the "mm/dd/yyyy" format.

My "Advanced Settings" are:

jira.date.picker.java.format: "mm/dd/yyyy"

jira.date.picker.javascript.format: "%m/%d/%Y"

jira.date.time.picker.java.format: "mm/dd/yyyy h:mm a"

jira.date.time.picker.javascript.format: "%m/%d/%Y %l:%M %p"

Any ideas how to resolve this?

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Trudy P Claspill
Community Champion
January 17, 2024

Hello @S_ B_ Sebrick 

Welcome to the Atlassian community.

"Look and Feel" Day/Month/Year format is set to the "mm/dd/yyyy" format.

In that context a lower case "m" means minutes, not month. To get month data you need an upper case "M". And that setting formats the display of date-only data. date/time data is formatted by the settings for Complete Date/Time Format

What is the "Look and Feel" settings for Complete Date/Time Format? That is what formats the display of date/time information. Again, in this setting you need to use M's for month, and m's for minutes. And I suspect you don't have the correct syntax there for days.

S_ B_ Sebrick
January 18, 2024

Thanks, that was a big help!

Trudy P Claspill
Community Champion
January 18, 2024

Glad I could help.

If your problem has been solved with the help of my response, please consider clicking on the Accept Answer button above the response.

TAGS
AUG Leaders

Atlassian Community Events