Use int32_t to convert the leasetime to fix support for platforms where time_t is 64-bit.
Use int32_t to convert the leasetime to fix support for platforms
where time_t is 64-bit.

Submitted by:   des

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase