Skip to content

Commit

Permalink
fix(typescript-angular): Fix date-timing-parsing is truncating the ti…
Browse files Browse the repository at this point in the history
  • Loading branch information
Панасенко А.В committed Dec 14, 2019
1 parent 02f5cb1 commit fae556e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class {{classname}} {
{{^isListContainer}}
if ({{paramName}} !== undefined && {{paramName}} !== null) {
{{#isDateTime}}
{{#useHttpClient}}queryParameters = {{/useHttpClient}}queryParameters.set('{{baseName}}', ({{paramName}} as any instanceof Date) ? ({{paramName}} as any).toISOString().substr(0, 10) : {{paramName}});
{{#useHttpClient}}queryParameters = {{/useHttpClient}}queryParameters.set('{{baseName}}', ({{paramName}} as any instanceof Date) ? ({{paramName}} as any).toISOString(): {{paramName}});
{{/isDateTime}}
{{^isDateTime}}
{{#useHttpClient}}queryParameters = {{/useHttpClient}}queryParameters.set('{{baseName}}', <any>{{paramName}});
Expand Down

0 comments on commit fae556e

Please sign in to comment.