Adjust get_time function for salt api

Timeout is unicode type in salt rest api by POST data.
The issue in salt-api: https://github.com/saltstack/salt-api/issues/148