Changing the timezone configuration inside Netezza Performance Server container

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

  1. 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.
  2. Remove the existing timezone symbolic link:
    unlink /data/localtime
  3. 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
  4. 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.