Skip to main content
Answer

retention datetime fetched via API and on GUI is different

  • August 29, 2024
  • 1 reply
  • 48 views

Forum|alt.badge.img+7

I have pulled the retention details of the VM client via api. It is in unix epoch time so I had to convert it to human readable format. The datetime on commvault GUI and API is different.

Below information is fetched via API:

Unix epoch time: 1728697951
Retained until: 2024-10-12 01:52:31

Below is from the GUI
 

 

Best answer by Brian Bruno

Hi @RandomCustomer,

 

The epoch time returned by the API is going to be in UTC, whereas the GUI will return the date in the local time zone.  My assumption is that if you were to convert the date you returned via API into your local time zone, it would land on the same date.

 

-Brian Bruno

1 reply

Forum|alt.badge.img+13
  • Vaulter
  • Answer
  • August 29, 2024

Hi @RandomCustomer,

 

The epoch time returned by the API is going to be in UTC, whereas the GUI will return the date in the local time zone.  My assumption is that if you were to convert the date you returned via API into your local time zone, it would land on the same date.

 

-Brian Bruno