Skip to content

Commit

Permalink
offset
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed May 28, 2024
1 parent b7c9621 commit 6bfa5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function stringToTimestamp(
const year = parseDateString(inputDate, format.toLowerCase(), "y");
const month = parseDateString(inputDate, format.toLowerCase(), "m");
const day = parseDateString(inputDate, format.toLowerCase(), "d");
const seconds = readableToSeconds(`${year}-${month}-${day}T00:00:00`);
const seconds = readableToSeconds(`${year}-${month}-${day}T00:00:00.000Z`);
if (isNaN(seconds))
throw new Error(`${inputDate} is not in the format ${format}`);
return seconds;
Expand Down

0 comments on commit 6bfa5ee

Please sign in to comment.