VMware Cloud Community
sg1212
Contributor
Contributor

Can't set proper time in ESX 5

When I set my BIOS time to the correct time the "date" command on ESX gives me the proper time but the vSphere Client Configuration -> Time Configuration shows the time 4 hours behind.  If I fix the time in Time Configuration the server's BIOS/hardware clock/date command time goes ahead 4 hours.  How do I fix this discrepancy.  I use to be able to turn off UTC in ESX 4.

Tags (1)
9 Replies
athlon_crazy
Virtuoso
Virtuoso

I use below command to set both hardware and system time manually to -> 9:17AM 10/10/2012:

#esxcli hardware clock set -d 10 -H 09 -m 17 -M 10 -s 00 -y 2012

#esxcli system time set -d 10 -H 09 -m 17 -M 10 -s 00 -y 2012

Cmd options:
  -d|--day=<long>       Day
  -H|--hour=<long>      Hour
  -m|--min=<long>       Minute
  -M|--month=<long>     Month
  -s|--sec=<long>       Second
  -y|--year=<long>      Year

http://www.no-x.org
sg1212
Contributor
Contributor

Thanks, but that just lets me set the time which I can do in the BIOS or vSphere client too.  It doesn't fix or account for the 4 hour difference I get no matter what I do.  Correct vSphere Client time makes my BIOS time in the future.  Correct BIOS time puts my vSphere client time 4 hours in the past.

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Ah yes ESXi 5 by default use UTC time and change the timezones is not supported.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1436

http://www.no-x.org
0 Kudos
sg1212
Contributor
Contributor

So I can never have accurate time then?  I can only have accurate time in my BIOS OR the vSphere client then, not both?  That link doesn't do anything for me because its about setting UTC=false in sysconfig which doesn't exist in ESXi 5.

0 Kudos
atariguy
Enthusiast
Enthusiast

I'm having the same problem. The times I see in the vcenter client for esxi 5.1 are 6 hours behind, yet on the configuration tab for each host, the time setting is correct, and it assures me it will show me the proper time (yeah, right).

The interesting thing is that my one standalone host does show the correct time when I connect with the client.

And when I installed Veeam One, it threw a fit about a time difference that I couldn't find, which I assume is related, and I ended up having to make a registry setting that told it to ignore the difference.

0 Kudos
jrmunday
Commander
Commander

See this thread;

http://communities.vmware.com/message/1995322

vExpert 2014 - 2022 | VCP6-DCV | http://www.jonmunday.net | @JonMunday77
0 Kudos
atariguy
Enthusiast
Enthusiast

Thanks, but that thread doesn't help.

"The vSphere Client uses the time zone settings of the system on which it is installed to 'adjust' the displayed time."

Only problem is, it doesn't "adjust" the displayed time for me. Does it do that for you?

0 Kudos
atariguy
Enthusiast
Enthusiast

This is what it looks like on my PC.

ScreenShot012.png

0 Kudos
escapem2
Enthusiast
Enthusiast

thanks a lot it helped a lot

0 Kudos