massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / node_modules / ajv / lib / compile / jtd / serialize.ts
index f9671006bd51b954243b9ca40b8c29f2912b28aa..a8b36bd882ed00889e0ca5dee71a4bba9251b9a0 100644 (file)
@@ -213,7 +213,7 @@ function serializeType(cxt: SerializeCxt): void {
     case "timestamp":
       gen.if(
         _`${data} instanceof Date`,
-        () => gen.add(N.json, _`${data}.toISOString()`),
+        () => gen.add(N.json, _`'"' + ${data}.toISOString() + '"'`),
         () => serializeString(cxt)
       )
       break