Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from Home24/feature/fix-stream-date
Browse files Browse the repository at this point in the history
fix ApproximateCreationDateTime
  • Loading branch information
tomasbartkus authored Sep 28, 2017
2 parents cb2fb95 + 7f795b8 commit 9d1ef15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function createStreamRecord(store, table, oldItem, newItem, cb) {
var record = {
awsRegion: store.tableDb.awsRegion,
dynamodb: {
ApproximateCreationDateTime: Date.now(),
ApproximateCreationDateTime: Math.floor(Date.now() / 1000),
Keys: {},
SequenceNumber: key,
SizeBytes: 0,
Expand Down

0 comments on commit 9d1ef15

Please sign in to comment.