Skip to content

Commit

Permalink
replace toLocalString with toISOSTring (#12700)
Browse files Browse the repository at this point in the history
  • Loading branch information
lassopicasso authored and Jondyr committed Jun 10, 2024
1 parent 4214984 commit 23db148
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test('that isDateWithinSeconds works', () => {
10,
);
expect(oldDate).toBe(false);
const newDate = DateUtils.isDateWithinSeconds(new Date().toLocaleString(), 36000);
const newDate = DateUtils.isDateWithinSeconds(new Date().toISOString(), 36000);
expect(newDate).toBe(true);
});

Expand All @@ -45,7 +45,7 @@ test('that isDateWithinDays works', () => {
10,
);
expect(oldDate).toBe(false);
const newDate = DateUtils.isDateWithinDays(new Date().toLocaleString(), 10);
const newDate = DateUtils.isDateWithinDays(new Date().toISOString(), 10);
expect(newDate).toBe(true);
});

Expand Down

0 comments on commit 23db148

Please sign in to comment.