We observed that, Openshift Cluster and PostgreSQL servers are configured with UTC+3 (Saudi Arabia / AST / Asia-Riyadh) time zone but Openshift PODS are running with UTC time zone.
Below approaches tried to fix the issue but no use. Looking for a solution to fix it.
- Tried Passing the JVM Argument: -Duser.timezone=“Asia/Riyadh”
- Created a configmap in the web deployment with below parameter
kind: ConfigMap
apiVersion: v1
metadata:
name: timezone
namespace: pegadev
data:
TZ: Asia/Riyadh - Updated the _pega-deployment.tpl with below setting
containers:- name: pega-web-tomcat
image: {{ .root.Values.global.docker.pega.image }}
env: - name: TZ
value: “Asia/Riyadh”
- name: pega-web-tomcat
- used the oc command: oc set env deployments/dc_name TZ=Asia/Riyadh
- used the oc command: oc set env deploymentconfig/dc_name TZ=Asia/Riyadh
- Tried all other instructions mentioned: https://access.redhat.com/solutions/2567961
- Created Environment Variable: TZ=Asia/Riyadh in Openshift Deployment
Note: The same issue reported in Timezone Difference issue · Issue #710