System.CurrentTime clarification

Started by suphu, October 05, 2022, 01:32:48 AM

Previous topic - Next topic

suphu

Hi,

agent and server version 3.9.178
I created a DCI with the agent parameter System.CurrentTime.
I validated timezone settings for multiple windows servers on which agents are running and the collected time is the same.
Should System.CurrentTime represent the current local time of the windows server where the agent is installed?

Thanks. 

Filipp Sudanov

System.CurrentTime returns unix time in UTC time zone.
You can use System.TimeZone to get time zone.