make sure timestamp used in URL is a whole number and not a fraction

I should have sent this to you some time ago, but here it is.

The call to the web api will randomly fail (most of the time, actually) if the current timestamp is not a whole number of seconds. Changed the casting to prevent the fractional amount from being added to the URI