Skip to main content
Version: 24.3

Setting the System Timezone

Overview

Follow these instructions to set the system timezone on Linux.

Agility Connect relies on the timezone of the Linux host and whatever timezone the MongoDB database is set to. Users can set their local timezone for display purposes used on some pages. However, data stored in the database uses the system timezone.

To set the system timezone on Linux, use the following steps.

Find your TZ value to use here:

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Now set the timezone using the command line substituting the with the selected zone.

sudo timedatectl set-timezone

example for EST:

sudo timedatectl set-timezone America/New_York

example for PST:

sudo timedatectl set-timezone America/Los_Angeles

Then restart MongoDB to force the database to use the timezone setting. NOTE: this will require a minute or two of Agility Connect downtime.

as-stop-services
sudo service mongod restart
as-start-services