Setting the time zone

Last Updated : Jul 17, 2020 |

About this task

Currently:

  • Usage Metering calculates the daily usage data based on the operating system time zone that you set for the Usage Metering Collector server.

  • Each Usage Metering Collector supports only one time zone.

Use this procedure to set the operating system time zone for the Usage Metering Collector server.

You must set the time zone before installing Usage Metering. If you set or change the time zone after installing Usage Metering, you must restart the Usage Metering server.

Before you begin

  • To view the current time zone settings, run the following command:

    timedatectl

  • To view a list of time zones, run the following command:

    timedatectl list-timezones

Procedure

  1. In an SSH client, run the following command:

    timedatectl set-timezone <your time zone>

    For example, to configure the time zone for New York, run the following command:

    timedatectl set-timezone America/New_York

  2. (Optional) To restart the Usage Metering server, run the following command:

    um-restart

    The change in the time zone that you set takes effect.