Change the system timezone by updating the symbolic link in the
/data/localtime directory to point to a timezone file in
/data/zoneinfo.
Before you begin
- Root or administrative access to the system.
About this task
The system is configured to use UTC as the default timezone when the container is
deployed. Customers who require a different timezone must configure it after deployment by following
the procedure in this document. Timezone definitions are available under the
/data/zoneinfo directory. This directory is created automatically during
container deployment and contains the supported timezone definitions. Select the required timezone
from this directory when updating the symbolic link
Procedure
-
From the system console, verify the current timezone setting by running the following
commands:
ls -l /data/localtime
date
The output displays the symbolic link pointing to the current timezone file and
the current system date and time.
-
Remove the existing timezone symbolic link:
-
Create a new symbolic link to the timezone file of your choice in the
/data/zoneinfo directory:
ln -s /data/zoneinfo/region/city /data/localtime
For example, to set the timezone to Asia/Kolkata:
ln -s /data/zoneinfo/Asia/Kolkata /data/localtime
Common timezone paths include:
- /data/zoneinfo/America/New_York
- /data/zoneinfo/Europe/London
- /data/zoneinfo/Asia/Tokyo
- /data/zoneinfo/Australia/Sydney
- /data/zoneinfo/UTC
-
Verify that the timezone is updated correctly:
ls -l /data/localtime
date
The symbolic link points to the new timezone file, and the
date command displays the correct time for your timezone.