Pods with TZ variable have wrong date after DST change in OpenShift 4
Issue
-
Some Pods are not showing the right DST drift even if
TZ
variable is set to an appropriate timezone (it should beEEST
in this example):$ oc describe deploymentconfig [dc_name] -n [namespace_name] | grep TZ TZ: Africa/Cairo $ oc exec -n [namespace_name] [pod_name] -- date Wed May 17 10:44:06 EET 2023 <-- DOES NOT WORK, Africa/Cairo should have East European Summer Time (EEST) by May 17 2023
-
Solutions How to set timezone for pods in OpenShift Container Platform? and Configuration of a Custom Time Zone for RHCOS Nodes did not resolve the issue.
Environment
- Red Hat Openshift Container Platform (RHOCP)
- 4
- Timezone
- Daylight Saving Time (DST)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.