Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typescript-Node] Date formatting using Date.toString instead of Date.toISOString() #785

Closed
gbrown-ce opened this issue Aug 10, 2018 · 0 comments

Comments

@gbrown-ce
Copy link
Contributor

Description

When dealing with dates in the generator it formats a date with the javascript toString method (which looks like this:

"Wed Oct 05 2011 10:48:00 GMT-0400 (Eastern Daylight Time)"

Rather than the more standardized toISOString() method:

"2011-10-05T14:48:00.000Z"

This makes dealing with dates tricky in different scenarios we have come across. The Angular client already properly uses toISOString, so there is precedent for it.

openapi-generator version

3.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants