Skip to content

Commit

Permalink
fix: 🐛 [Timeline] Allow tz in initialDateTime and task ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
luciob committed Oct 17, 2023
1 parent 6215af1 commit 361acae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getValidTime = (date: number | string): number => {
}

if (typeof date === "string") {
const dateTime = DateTime.fromISO(date, { zone: "utc" });
const dateTime = DateTime.fromISO(date);
if (dateTime.toISO() === date) {
return dateTime.toMillis();
}
Expand Down

0 comments on commit 361acae

Please sign in to comment.