Skip to content

Commit

Permalink
Fixed date
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jul 11, 2023
1 parent b72cc66 commit 667629d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metrics/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export abstract class Metrics {
return [
namespace,
key,
`d:${(new Date).getUTCDay().toString()}`,
`d:${(new Date).getUTCDate().toString()}`,
`h:${(new Date).getUTCHours().toString()}`,
];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ws/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('ws/connection', () => {
expect(await metrics.get('test')).toEqual({
total_connections: 1,
sent_messages: {
[`d:${(new Date).getUTCDay().toString()}`]: {
[`d:${(new Date).getUTCDate().toString()}`]: {
[`h:${(new Date).getUTCHours().toString()}`]: 1,
},
},
Expand Down

0 comments on commit 667629d

Please sign in to comment.