Skip to content

Commit

Permalink
fix: date views (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Jul 17, 2024
1 parent ed4b643 commit b8fcd30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/shared/checks/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function paramSerializer(param: CheckParam, value: any) {
case "number":
return encode(value)
case "date":
return encode(new Date(value.getTime()).toISOString())
return encode(new Date(value).toISOString())
default:
return undefined
}
Expand All @@ -43,7 +43,6 @@ function deserializeParamValue(
case "number":
return Number(decodeURIComponent(value))
case "date":
console.log(decodeURIComponent(value))
return new Date(decodeURIComponent(value))
default:
return undefined
Expand Down

0 comments on commit b8fcd30

Please sign in to comment.