Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #785
Closed
Open
Issue created Aug 10, 2018 by Administrator@rootContributor

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

Created by: gbrown-ce

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

Assignee
Assign to
Time tracking