VMware Communities > VMware Developer > Forums > vSphere™ Web Services SDK > Discussions

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
2 Replies Last post: Jun 16, 2009 9:29 PM by deepakmits
Reply

Time zone difference when targetted to ESX and VC.

Jun 16, 2009 3:22 AM

Click to view deepakmits's profile Hot Shot deepakmits 154 posts since
Sep 2, 2008
When I target to VC (PerfEntityMetric) pValues[j]).getSampleInfo(sampleInfoLen-1).getTimestamp().getTimeZone() gives me one time zone and at the same moment if I target ESX directly gives me different time zone. So how can I handle this? Is there any way to suppress this difference ?

thanks
Reply Re: Time zone difference when targetted to ESX and VC. Jun 16, 2009 11:11 AM
Click to view tmilner's profile Enthusiast tmilner 131 posts since
Oct 19, 2005

Both timestamps are in GMT, not local time. The timezone is only provided if you wanted to know the servers local time.

Tom

Reply Re: Time zone difference when targetted to ESX and VC. Jun 16, 2009 9:29 PM
in response to: tmilner
Click to view deepakmits's profile Hot Shot deepakmits 154 posts since
Sep 2, 2008
Yes. Timestamps are in GMT. when targeted to VC timestamp shows timezone as GMT. when targeted to ESX timestamp shows timezone as GMT+05:30. So this is what is happening.
Actions