-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow getShardIterator to support timestamps in 2016-04-04T19:58:46.480-00:00
format
#70
Comments
The docs say "with precision in milliseconds" – not in milliseconds. The example they give, |
Would it be viable for Kinesalite to add support to allow any valid timestamp, then? Before I started using this module I've been using the AWS API with timestamps in milliseconds, i.e.: |
@chody-h can you show me some code? Did you mean one of the AWS SDKs, or are you calling the API manually? |
We were using the The API also notes that it accepts timestamp strings in the format |
2016-04-04T19:58:46.480-00:00
format
@chody-h I can look into that when I get the chance. Have changed this issue title accordingly. |
Great, thanks for your time. Let me know if you'd like any help, I'd be happy to contribute. |
The Kinesis docs specify that the parameter of the
getShardIterator
call using the"AT_TIMESTAMP"
ShardIteratorType should be a timestamp in milliseconds. However, the Kinesalite server multiplies the supplied parameter by 1000. Since it is expecting milliseconds, there is no need to multiply.This should be a simple fix: remove line 84 in getShardIterator.js and touch up the corresponding unit tests. If you agree, I'd love to get a pull request in for you to take a look at.
The text was updated successfully, but these errors were encountered: