CAS Gateway: How to set the current time.

How to to set the current time on the CAS Gateway

Instructions: 

  1. Get the current time in unix epoch time (Current time)
    Example: 1365092464 would be 4:21:04 pm UTC , Thursday, April 4, 2013
  2. From your browser using this format set the current time by visting this page. http://{CAS Gateway IP address}/bin/xml/?act=set&current_time={unix epoch time}
    Example: http://192.168.1.113/bin/xml/?act=set&current_time=1365092464

 

5.1 Current time

This request will sets the current time in the system to a unix epoch time

Parameters:
{time in secs} – The number of seconds that have elapsed since midnight Coordinated Universal Time (UTC), January 1, 1970

Example Request:
act=set&current_time=1234567890

Example XML Response:

<HttpXML>
   <query>
      <act>set</act>
      <current_time>1234567890</current_time>
   </query>
   <response status="OK" count="1">
      <current_time>OK</current_time>
   </response>
</HttpXML>