Merge remote-tracking branch 'origin/dev' into dev
Some checks are pending
Create docker images / Build, push, and deploy (push) Waiting to run
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run

This commit is contained in:
Mike Cao 2025-09-30 16:18:48 -07:00
commit 581ddc0233
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 {