JIRA custom field dates/system date in wrong locale format

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

  1. Custom fields are displayed in the wrong date locale. Example (Polish locale. Compare that to the Created, Updated and Due date fields):
  2. The System Date and System Installation Date fields in Confluence Admin >> System Information are shown in the wrong date locale as well:


The following appears in the application.xml (in the Confluence Support Zip):

<user.language.format>pl</user.language.format>
<user.country.format>PL</user.country.format>

The Polish locale here is shown as an example

原因

  1. A recent change in JDK 7: http://blog.ej-technologies.com/2011/12/default-locale-changes-in-java-7.html
  2. The Global Environment variable is overriding the user.language.format and user.country.format system properties, such that the JAVA_OPTS contains this:

    -Duser.language.format=pl -Duser.country.format=PL

ソリューション

  • Override the JVM defaults by adding the following to your System Properties (set the locale according to the locale of your choice):

    -Duser.language.format=en -Duser.country.format=US

    See Configuring System Properties for more details on how to do this

  • Confluence を再起動します。

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.