Skip to content

Commit b5e2bbe

Browse files
committed
test: fix issue related of daylight saving time
1 parent 2b2a1e9 commit b5e2bbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/domains/attempt/schemas/attempt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const parse = (attemptEntity: AttemptEntity): Attempt => {
1111

1212
const date = new Date();
1313
const timestamp = date.getTime();
14-
const timezoneOffsetMs = date.getTimezoneOffset() * 60 * 1000;
14+
const timezoneOffsetMs = -60 * 60 * 1000;
1515

1616
describe("attemptSchema", () => {
1717
const attemptEntity: AttemptEntity = {

0 commit comments

Comments
 (0)