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);