Fixed issue with setting times greater than 32000

signed ints wrapped around to negative...