Skip to content

Commit f15ae34

Browse files
tyler-daneCopilot
andauthored
Update packages/web/src/views/Today/util/date-route.util.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2f0cd70 commit f15ae34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/views/Today/util/date-route.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const parseDateFromUrl = (
1414
}
1515

1616
// Use strict parsing to ensure exact format match
17-
// Parse in local timezone first, then convert to UTC to avoid timezone issues
17+
// Parse in local timezone to maintain user's date context, then convert to UTC for storage/comparison
1818
const parsed = dayjs(dateString, YEAR_MONTH_DAY_FORMAT, true).utc();
1919

2020
if (!parsed.isValid()) {

0 commit comments

Comments
 (0)