容器:
您可能需要更改 Business Automation Workflow 中时区的缺省 JVM 设置,因为缺省情况下它设置为 "中欧时间" (CET)。 通过将 JVM 参数更改为另一时区,您可更改用户界面中显示的日期和日历。
准备工作
您可以在安装时定制生产实例的 JVM 参数,或者使用缺省设置。 在定制资源 .yaml 文件中使用 jvm_customize_options 参数。
过程
- 选择下列其中一种方法来设置时区:
- 在定制资源 (CR) 文件中,将 timezone 参数更改为所需的时区。 例如:
baw_configuration:
- name: bawins1
## JVM options separated with spaces, for example: -Dtest1=test -Dtest2=test2.
environment_config:
timezone: Etc/UTC
- 在定制资源 (CR) 文件中,将 jvm_customize_options 参数更改为所需的时区。 例如:
baw_configuration:
- name: bawins1
## JVM options separated with spaces, for example: -Dtest1=test -Dtest2=test2.
jvm_customize_options: "-Duser.timezone=America/Chicago"
- 通过对定制资源 .yaml 文件运行
kubectl apply 命令来修改现有容器。
kubectl apply -f custom_resources.yaml
结果
操作员将修改应用程序以使用新的 configmap 并更新 /config/configDropins/overrides/jvm.options 文件。
This topic is shared by BAW, CP4BA. Last updated on 2025-01-20 10:38