Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Adjusting ESX host Time Zone (1436)

Last Updated: 7/14/2020Categories: InformationalTotal Views: 90909Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglish

37 like this article

Subscribe to get an email
newsletter with new updates

37 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Details

During installation, a time zone was selected for an ESX host that does not match the desired time zone. This article provides steps to change the time zone.

Note: An ESX host with an incorrect date and time or time zone passes on that incorrect information. When a virtual machine boots up it seems to get its initial time from the BIOS hardware clock which comes from the ESX host.

Solution

ESX hosts

To change the time zone:

Note: It is not necessary to reboot the ESX host after following this procedure.

Log into the ESX service console as root.

Find the desired time zone under the /usr/share/zoneinfo directory. Some regions have multiple files in a subdirectory. For example, US contains several files, each representing a time zone.

Note: The example below uses /usr/share/zoneinfo/US/Pacific as the new time zone file.

Use nano (or another text editor) to open the /etc/sysconfig/clock file. For more information, see Editing files on an ESX host using vi or nano (1020302).

On the command line, run the command:

nano /etc/sysconfig/clock

Edit this file to show the relative path to the file representing the new time zone, and ensure that UTC and ARC are set as shown:

ZONE="US/Pacific"
UTC=false
ARC=false

Copy or link the desired time zone file to /etc/localtime. Continuing the example using US/Pacific:

To copy, run the command:

cp /usr/share/zoneinfo/US/Pacific /etc/localtime

To link, run the command:

ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime

Note: If you receive an overwrite `/etc/localtime'? prompt, answer y to replace the file representing the old time zone. Again, it is not necessary to reboot the ESX host after updating /etc/localtime.

Confirm that /etc/localtime has been updated with the correct zoneinfo data:

Reference the zoneinfo file used in step 2, and compare it to /etc/localtime using the diff command:

diff /etc/localtime /usr/share/zoneinfo/US/Pacific

If the files are identical, your prompt returns without any output.

If /etc/localtime is not the same as the /usr/share/zoneinfo/your_location, the output from the diff command appears similar to:

Binary files /etc/localtime and /usr/share/zoneinfo/US/Pacific differ

If the files are not the same, repeat step 5.

After updating /etc/localtime with the correct zoneinfo data, confirm the system and hardware clocks are correct. Use the Linux date command to check and set the correct time if necessary, and set the hardware clock to match the correct system time.

Set the system clock to the local date and time:

date MMDDhhmmYYYY

Update the hardware clock with current time of the system clock:

/sbin/hwclock --systohc

Notes:

Upon booting, ESX runs /etc/rc.d/init.d, which reads /etc/sysconfig/clock to set the system clock based on the hardware clock's current time and the configured time zone information. To synchronize ESX to an external time reference, see Installing and Configuring NTP on an ESX host (1339).

You may be required to restart the vSphere Client for the timezone information to be updated within the GUI.

For more information about timezones, including issues with Daylight Saving Time (DST), search the VMware Knowledge Base.

Note: If you still cannot adjust the ESX host time zone after trying the steps in this article, please file a support request with VMware Support and note this Knowledge Base article ID (1436) in the problem description. For more information, see Filing a Support Request in Customer Connect (2006985).

ESXi hosts

ESXi uses UTC time and does not support changing time zones.

In ESXi 3.5, you see the message:

Note: The date and time of the host have been translated to the local time of this VI Client.

In ESXi 4.x, ESXi 5.x, ESXi 6.x,and  you see the message:

Note: The date and time of the host have been translated to the local time of this vSphere Client.

Additional Information

For translated versions of this article, see:

Portuguese: Ajuste do fuso horário do host do ESX (2015880)

Spanish: Ajustar la zona horaria del host de ESX (2016303)

日本語: ESX ホストのタイム ゾーンの調整 (2052726)

简体中文: 调整 ESX 主机时区 (2020930)

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglish

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware ESX Server

Related Versions:

VMware ESX Server 3.5.x

VMware ESX Server 3.0.x

VMware ESX Server 2.5.x

VMware ESX Server 2.1.x

VMware ESX Server 2.0.x

VMware ESX 4.1.x

VMware ESX 4.0.x

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant