Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Conversation

@jcderr
Copy link
Contributor

@jcderr jcderr commented Feb 17, 2015

python datetime/time timestamps will sometimes be floats, such as when you do this:

>>> time.mktime(datetime.datetime.now().timetuple())

The HTTP throws non-specified errors when these are passed. Casting them as int() resolves this.

@remh
Copy link
Contributor

remh commented Feb 17, 2015

Thanks a lot @jcderr !
@yannmh Can you review merge and release when you'll have a chance ?

@yannmh yannmh added this to the datadog-py milestone Feb 18, 2015
@yannmh
Copy link

yannmh commented Feb 18, 2015

Thanks @jcderr ! I am merging your contribution.

yannmh pushed a commit that referenced this pull request Feb 18, 2015
fix(stream): cast timestamps as ints
@yannmh yannmh merged commit 2da136e into DataDog:master Feb 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants