Skip to content

Commit 525ce1a

Browse files
committed
tests: fix timezone
1 parent 03ba6fc commit 525ce1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/form/RruDateTimeInput.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ describe('RruDateTimeInput', () => {
194194
expect(onSubmit.mock.calls[0][0]).toEqual({
195195
// because using YUP validation schema causes the value to be casted to Date object
196196
// TODO: This is a bug in react-hook-form, open PR
197-
birthDate: new Date(new Date('2020-05-12').getTime() - 3 * 60 * 60 * 1000),
197+
birthDate: new Date('2020-05-12T00:00:00'),
198198
});
199199
});
200200
});

0 commit comments

Comments
 (0)