Skip to content

Commit

Permalink
fix: preventing dates to default to 5pm
Browse files Browse the repository at this point in the history
  • Loading branch information
MacQSL committed Jun 18, 2024
1 parent d8dbc74 commit 5beb89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/utils/datetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const combineDateTime = (date: string, time?: string | null) => {
if (date && time) {
return new Date(`${date}T${time}`).toISOString();

Check warning on line 10 in app/src/utils/datetime.ts

View check run for this annotation

Codecov / codecov/patch

app/src/utils/datetime.ts#L10

Added line #L10 was not covered by tests
}
return new Date(date).toISOString();
return new Date(`${date}T00:00:00`).toISOString();

Check warning on line 12 in app/src/utils/datetime.ts

View check run for this annotation

Codecov / codecov/patch

app/src/utils/datetime.ts#L12

Added line #L12 was not covered by tests
};

0 comments on commit 5beb89c

Please sign in to comment.