Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Mike Cao
2025-09-30 16:18:48 -07:00
7 changed files with 45 additions and 103 deletions

View File

@@ -122,8 +122,9 @@ export function parseDateValue(value: string) {
if (!match) return null;
const { num, unit } = match.groups;
const formattedNum = +num > 0 ? +num - 1 : +num;
return { num: +num, unit };
return { num: formattedNum, unit };
}
export function parseDateRange(value: string, locale = 'en-US'): DateRange {