Fixed date formatting in typescript node client (#786)

Fixes #785
This commit is contained in:
Geoff Brown 2018-08-13 13:27:31 -04:00 committed by Tino Fuhrmann
parent 7b04732f09
commit 08ca54d3d5
3 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ export class ObjectSerializer {
}
return transformedData;
} else if (type === "Date") {
return data.toString();
return data.toISOString();
} else {
if (enumsMap[type]) {
return data;

View File

@ -91,7 +91,7 @@ export class ObjectSerializer {
}
return transformedData;
} else if (type === "Date") {
return data.toString();
return data.toISOString();
} else {
if (enumsMap[type]) {
return data;

View File

@ -91,7 +91,7 @@ export class ObjectSerializer {
}
return transformedData;
} else if (type === "Date") {
return data.toString();
return data.toISOString();
} else {
if (enumsMap[type]) {
return data;