Disabling DST on v10 Virtual Appliance Gateway
search cancel

Disabling DST on v10 Virtual Appliance Gateway

book

Article ID: 235900

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Can Daylight Savings Time be disabled on a v10 Gateway Virtual Appliance?

Environment

API Gateway: 10.X

Resolution

If you do an ls -al command on the /etc directory, localtime should have a symlink that looks something like this:

lrwxrwxrwx   1 root root       37 Apr 27  2021 localtime -> ../usr/share/zoneinfo/America/Chicago

To disable DST, you will need to update the symlink so that it points to a GMT timezone.

[root@ssg10-3 /]# date
Thu Feb 17 10:10:06 CST 2022
[root@ssg10-3 /]# rm -f /etc/localtime
[root@ssg10-3 /]# ln -s /usr/share/zoneinfo/Etc/GMT+6 /etc/localtime
[root@ssg10-3 /]# date
Thu Feb 17 10:10:16 -06 2022
[root@ssg10-3 /]#

To confirm that DST has been disabled, I compared it to a different environment:

***DST is disabled***
[root@ssg10-3 /]# timedatectl
      Local time: Thu 2022-02-17 10:17:16 -06
  Universal time: Thu 2022-02-17 16:17:16 UTC
        RTC time: Thu 2022-02-17 16:17:16
       Time zone: Etc/GMT+6 (-06, -0600)
     NTP enabled: no
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a


***DST is enabled***
[root@ssg10-2 ~]# timedatectl
      Local time: Thu 2022-02-17 10:17:40 CST
  Universal time: Thu 2022-02-17 16:17:40 UTC
        RTC time: Thu 2022-02-17 16:17:40
       Time zone: America/Chicago (CST, -0600)
     NTP enabled: no
NTP synchronized: yes
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2021-11-07 01:59:59 CDT
                  Sun 2021-11-07 01:00:00 CST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2022-03-13 01:59:59 CST
                  Sun 2022-03-13 03:00:00 CDT

Additional Information

For EST, you should use GMT+5.