ZCC API 'TimeStamp' Issue

,

We have recently been given access to the ZCC API. I am using PowerShell to run the queries, ‘getDevices’ runs successfully and returns ZCC devices. However, it appears any field with a timestamp is not returning correct results.

Format appears to be ‘DateTime Ticks’. Converting the Ticks, I get wildly incorrect Date and Times. The Tick timestamps appear to be truncated in some form as they are way too short compared to current date/time Ticks.

Anyone else having this issue? I opened a ticket with support and am awaiting their thoughts. Thought I would submit here as well. Thanks.

image

This doesn’t appear to be in ‘DateTime Ticks’ format, but rather in Epoch format. You can use a site such as unixtimestamp.com to convert this or something like what is shown here to use PowerShell to convert this.

2 Likes

Correct. Time is unix epoch time https://www.epochconverter.com/

1 Like

Thanks Brad. That worked.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.