VMware {code} Community
deepakmits
Contributor
Contributor

Time zone difference when targetted to ESX and VC.

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

0 Kudos
2 Replies
tmilner
Enthusiast
Enthusiast

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

Tom

0 Kudos
deepakmits
Contributor
Contributor

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.

0 Kudos