Elastic Cloud Server

Change Time Zone

2025-11-17 08:57:32

Scenario

The default time zone setting for the Elastic Cloud Server depends on the time zone you selected when creating the image. If you need to modify the time zone of the Elastic Cloud Server, follow the instructions in this section to synchronize the system time with the local time or change it to another time zone.

Change the time zone of Linux Elastic Cloud Server

You can change the time zone of the Linux Elastic Cloud Server by modifying the system configuration file. Here's how to change the time zone in CentOS:

1. Log in to your CentOS Elastic Cloud Server: Log in to the Elastic Cloud Server with your credentials.

2. Open the terminal or use the remote login tool: Get the command line interface for accessing the Elastic Cloud Server.

3. View the current time zone: You can use the following command to view the current time zone setting:

timedatectl

You can use the following command to list the time zones available on your system:

timedatectl list-timezones

1. Use the following command to apply the new time zone to the system and replace "Your_Time_Zone" with the time zone you want to set:

sudo timedatectl set-timezone Your_Time_Zone

For example, "Asia/Shanghai":

1. Save changes and exit the editor: In the Vi editor, press Esc, then type :wq to save changes and exit the editor.

:wq

1. Use the following command to run timedatectl again to verify if the time zone has been changed:

timedatectl

The system will display the current date and time, ensuring that the displayed time matches the time zone you have set, as shown in the figure below.

1. At this point, you have completed changing the time zone in CentOS.

Change the time zone of Windows Elastic Cloud Server

1. Use your credentials to log in to the Windows Elastic Cloud Server, taking Windows Server 2016 as an example this time.

2. Click the Windows Start menu and select Control Panel.

3. In the Control Panel, select Date and Time or Clock and Zone (the exact name may be slightly different).

4. On the date and time settings page, click the Change Time Zone button.

5. In the Time Zone Settings dialog box, select the time zone that is appropriate for your region. You can search by selecting a time zone from the drop-down list or typing the relevant region name in the search box.

6. After selecting the appropriate time zone, click the OK button to save the changes.

7. Open the date and time display of the system, or run the CMD and type "date" command to ensure that the displayed time matches the time zone you have set.

8. At this point, you have successfully changed the time zone on the Windows Elastic Cloud Server.


FGQzyAQ.oBxP