Details
Description
The TTL on a document is being incorrectly set during an upsert if the value passed in milliseconds is greater than ~24 days.
Steps to replicate:
1. Create a timespan object of 24 days (TimeSpan duration = new TimeSpan(24, 0, 0, 0))
2. Upsert a document via the .NET SDK with an Expiry set to the millisecond equivalent of the above TimeSpan (document.Expiry = (uint)timeToLive.Value.TotalMilliseconds)
3. Check the TTL of the document, which is a valid unix timestamp (1503681410 in my case)
4. Run the same test with a timespan object of 25 days (TimeSpan duration = new TimeSpan(25, 0, 0, 0))
5. Upsert again
6. Check the TTL of the document, which is a unix timestamp WAY in the future (4292832329 in my case)