How to Set the JVM Time Zone

In this tutorial, we’ll take a look at several ways we can modify the time zone of the JVM. Introduction to Time Zone By default, the JVM reads time zone information from the operating system. This information gets passed to the TimeZone class, which stores the time zone and calculates the daylight saving time. We can call the … Read more

How to change the timezone of containers running in k8s

rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Tehran /etc/localtime dpkg-reconfigure -f noninteractive tzdata 2. Change the timezone via k8s mount hostPath: spec: containers: – name: nginx image: nginx ports: – containerPort: 80 name: nginx volumeMounts: – name: tz-config mountPath: /etc/localtime volumes: – name: tz-config hostPath: path: /usr/share/zoneinfo/Asia/Tehran

Create a Custom or Disable DST(daylight-saving time) in RHEL/CentOS Linux

A few weeks ago, it is announced (by The Energy and Natural Resources Ministry of Iran) that DST will be permanent and GMT+3:30(IRST) will be used forever in the country. From 2023, Iran will not set their clocks forward for Daylight Saving Time (DST) but remain on standard time permanently. Based on following manual, we … Read more