Skip to content

Commit

Permalink
utc
Browse files Browse the repository at this point in the history
  • Loading branch information
John Gilbert committed Sep 21, 2024
1 parent c909bda commit 31d9b71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sinks/claimcheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { now } from '../utils/time';
const formatKey = (event) => {
const d = new Date(now());
// region/claimchecks/YYYY/MM/DD/HH/id
return `${process.env.AWS_REGION}/claimchecks/${d.getFullYear()}/${d.getMonth()}/${d.getDate()}/${d.getHours()}/${event.id}`;
return `${process.env.AWS_REGION}/claimchecks/${d.getUTCFullYear()}/${d.getUTCMonth()}/${d.getUTCDate()}/${d.getUTCHours()}/${event.id}`;
};

export const toClaimcheckEvent = (event, bucket) => ({
Expand Down
4 changes: 2 additions & 2 deletions test/unit/sinks/claimcheck.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ describe('sinks/claimcheck.js', () => {
tags: undefined,
s3: {
bucket: 'event-lake-s3',
key: 'us-west-2/claimchecks/2024/8/20/13/3',
key: 'us-west-2/claimchecks/2024/8/20/17/3',
},
},
putClaimcheckRequest: {
Bucket: 'event-lake-s3',
Key: 'us-west-2/claimchecks/2024/8/20/13/3',
Key: 'us-west-2/claimchecks/2024/8/20/17/3',
Body: '{\"id\":\"3\",\"body\":\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"}',
},
},
Expand Down

0 comments on commit 31d9b71

Please sign in to comment.