Skip to content

Commit 1c02bdf

Browse files
authored
Merge pull request #131 from andrewvasilchuk/andrewvasilchuk-patch-1
perf: faster sanitize date
2 parents 691691e + 3435fd8 commit 1c02bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sanitization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function sanitize(value: Value): string {
4444
}
4545

4646
if (value instanceof Date) {
47-
return quote(value.toISOString().replace('Z', ''))
47+
return quote(value.toISOString().slice(0, -1))
4848
}
4949

5050
return quote(value.toString())

0 commit comments

Comments
 (0)