A *NEW* Kaseya Community is coming! The Community will be going into read-only mode on 9/28. Get more details: https://www.community.connectit.com/discussion/41381/a-new-kaseya-community-is-coming

Get Agent Local Time

Brian Dagan
Brian Dagan Member
edited June 20 in Solutions

Product Name: Get Agent Local Time

Description : This Agent Procedure uses sqlRead() to pull the Agent's local time information directly from the Kaseya VSA Database... as such, it works on all endpoint types (Windows, Mac and Linux). It populates Global Variables that you can use in other Agent Procedures for today's date & time (year, month, day, hour, minute & second), yesterday's date (year, month & day), and the current quarter, week number, day number and weekday number. Like the noble Honey Badger, this Agent Procedure doesn't care about date/time localization settings on the Agent itself--it should always pull the correct information.

Instructions :

Instructions are included in _Readme.txt inside the ZIP archive