--- title: "Setting the date and time using the CLI" slug: "setting-the-date-and-time-using-the-cli" tags: ["Product Usage", "CMS 11.x", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Network Security"] updated: 2026-09-18T12:50:47Z published: 2026-09-18T12:50:47Z canonical: "docs.trellix.com/setting-the-date-and-time-using-the-cli" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Setting the date and time using the CLI Use the CLI commands in this topic to set the time zone on your Email Security - Server appliance. > [!WARNING] > Important > > NTP synchronization is set by default and must be disabled before you can manually configure the date and time. For information about disabling NTP, see [NTP server configuration](/network-and-platform/docs/ntp-server-configuration). **Prerequisites** - Admin access **To set the date and time:** 1. Go to CLI configuration mode: ```plaintext hostname > enable hostname # configure terminal ``` 2. (Optional) Use the `clock set <HH>:<MM> <YYYY>/<MM>/<DD>` command to specify the time and date. For example, the following command sets the time and date to 2:00 p.m. on July 21, 2014: ```plaintext hostname (config) # clock set 14:00 2014/07/21 ``` 3. Use the `clock timezone <timezone>` command to specify the time zone. For example, both of the following commands set the time zone to Pacific Standard Time: ```plaintext hostname (config) # clock timezone UTC-offset UTC+8 ``` ```plaintext hostname (config) # clock timezone America North United_States Pacific ``` > [!NOTE] > Note > > The time zone is for display purposes and should match other security device settings. 4. To restore the default time zone: ```plaintext hostname (config) # no clock timezone ``` 5. View the configured time and date settings: ```plaintext hostname (config) # show clock ``` 6. Save your changes. ```plaintext hostname (config) # write memory ``` ### Examples - Time and date using the North America Central Daylight time zone: ```plaintext hostname > show clock Time:        16:39:35 Date:        2014/06/25 Time zone:   America North United_States Central             (US/Central) UFC offset: -0500 (UTC minus 5 hours) ``` - Time and date settings using the default time zone: ```plaintext hostname > show clock Time:         21:40:37 Date:         2014/06/25 Time zone:    UTC              (Etc/UTC) UTC offset:   same as UTC ```