From 5479e57bee434068f87843753e7cd4b983334e0d Mon Sep 17 00:00:00 2001 From: Nico Martin Date: Wed, 5 Jul 2023 11:04:31 +0200 Subject: [PATCH] fixed date converter for javascript-flowtyped (#15983) --- .../src/main/resources/Javascript-Flowtyped/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache b/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache index de67e921527a..16912ed81168 100644 --- a/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache @@ -152,7 +152,7 @@ export const {{classname}}FetchParamCreator = function (configuration?: Configur {{/isDateTime}} {{^isDateTime}} {{#isDate}} - localVarQueryParameter['{{baseName}}'] = (({{paramName}}:any):Date).toISOString(); + localVarQueryParameter['{{baseName}}'] = (({{paramName}}:any):Date).toISOString().slice(0, 10); {{/isDate}} {{^isDate}} localVarQueryParameter['{{baseName}}'] = (({{paramName}}:any):string);