legacy-knowledge-base
公開されました Jun. 30, 2025

DXPでタイムゾーンを設定する方法

written-by

Debora Vita

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

問題

  • EST タイムゾーンで設定を行う必要があり、DXP でそれをどのように実行できるかを知りたいです。

環境

  • DXP 7.4

解決

  • Liferay は、ユーザーにとって適切なタイムゾーンに時間を変換できるように、すべての時間を UTC 形式で実行および保存します。
  • インスタンス自体には、デフォルトで UTC に設定されているロケール設定があります。 コントロールパネル > インスタンス設定 > ローカライズ > 標準時の設定をESTに変更するだけです。
  • データベースのタイムゾーンを変更する必要はありません。 Liferayはデータベースに常にUTCで時間を保存します。
  • サーバーのタイムゾーンは任意に設定できます。 JVM のタイムゾーン、 setenv.sh/setenv.bat スクリプトまたは tomcat(または使用しているその他のアプリ・サーバー)を起動する方法では、 -Duser.timezone=GMT が必要です。
  • Liferay インスタンス内では、デフォルトのタイムゾーンを自由に設定できます。ただし、JVM は GMT である必要があり、時間はデータベースとインデックスでも GMT として保持されます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base