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

fix(stream): cast timestamps as ints #128

Merged
merged 1 commit into from
Feb 18, 2015
Merged

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
Member

yannmh commented Feb 18, 2015

Thanks @jcderr ! I am merging your contribution.

yannmh added 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