legacy-knowledge-base
公開されました Sep. 10, 2025

JDK9+で日付フィールドが不正なフォーマットで設定される。

written-by

Alfonso Crisci

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay を JDK9 (または任意のメジャー) に設定した後、日付ピッカーで選択すると日付フォーマットが無効になることに気づくかもしれません。例えば、スウェーデン語で、2 月 20 日などの日付を選択すると、フィールドには 2020-02-20の代わりに y-02-20 と表示されます。

Environment

  • Liferay DXP 7.1+

解決策

  • setenv.bat (Windows)または setenv.sh (Linux)で以下のJVM argを設定してください:

    -Djava.locale.providers=JRE,COMPAT,CLDR

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base