Changing the time zone of Task events

Unified Compute Platform (UCP) Advisor Administration Guide

Version
4.5.x
Audience
anonymous
Part Number
MK-92UCP119-13
ft:lastEdition
2024-03-11

The default time zone displayed for events on the Tasks page is United States Eastern Time (EDT); however, you can change it to the time zone of your UCP Advisor deployment.

You change the time zone using the update_timezone.sh script. UCP Advisor microservices are restarted after you run the script.

You can manually update the time zone of the UCP Advisor VMs using the timedatectl set-timezone “<timezone name>” command. All the switches are backed up after the time zone is updated.

Important:

Running a script may issue a warning when UCP Advisor and Task time zone are different: “Warning: Input time zone is different from O.S. time zone, continue [Y/N]?”. When confirmed Y, UCP Advisor microservices are restarted.

  1. Using an SSH client such as PuTTy, log on to the Master Node VM as a root or sudo user.
  2. Navigate to the scripts folder. Enter:
    cd /var/ucpadvisor/scripts/
  3. (Optional) Add execute permission to the update_timezone.sh file. Enter:
    chmod +x update_timezone.sh
  4. Run the script with the new time zone that you want to display. (For a time zone listing, enter timedatectl list-timezones). Enter:
    ./update_timezone.sh <timezone name>
    For example:
    ./update_timezone.sh Australia/Canberra
  5. Browse to a UCP system Summary tab, and then click Refresh System.
All event start and completion times on the Tasks page are displayed in the new time zone.