{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/2680","repository_url":"https://api.github.com/repos/swagger-api/swagger-core","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/2680/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/2680/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/2680/events","html_url":"https://github.com/swagger-api/swagger-core/issues/2680","id":299242275,"number":2680,"title":"Incorrect date format when in response object ","user":{"login":"ghsatpute","id":3480767,"avatar_url":"https://avatars3.githubusercontent.com/u/3480767?v=4","gravatar_id":"","url":"https://api.github.com/users/ghsatpute","html_url":"https://github.com/ghsatpute","followers_url":"https://api.github.com/users/ghsatpute/followers","following_url":"https://api.github.com/users/ghsatpute/following{/other_user}","gists_url":"https://api.github.com/users/ghsatpute/gists{/gist_id}","starred_url":"https://api.github.com/users/ghsatpute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghsatpute/subscriptions","organizations_url":"https://api.github.com/users/ghsatpute/orgs","repos_url":"https://api.github.com/users/ghsatpute/repos","events_url":"https://api.github.com/users/ghsatpute/events{/privacy}","received_events_url":"https://api.github.com/users/ghsatpute/received_events","type":"User","site_admin":false},"labels":[{"id":185046679,"url":"https://api.github.com/repos/swagger-api/swagger-core/labels/Support","name":"Support","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-22T07:01:01Z","updated_at":"2018-02-26T07:23:15Z","closed_at":null,"author_association":"NONE","body":"\r\n \r\n| Q                                 | A\r\n| --------------------------------- | -------\r\n| Bug or feature request?           | Bug\r\n| Which Swagger-Core version?       | 2\r\n| Which Java version?               | 8.0\r\n\r\n\r\n ### Demonstration API definition\r\nFrom my API I'm returning a DTO which looks like below \r\n\r\n```\r\nclass ResponseDTO  {\r\n     Date CreatedOn;\r\n     Date ModifiedOn;\r\n}\r\n```\r\n\r\nIf I look on the swagger UI, I see this\r\n![image](https://user-images.githubusercontent.com/3480767/36438714-b692e96e-1690-11e8-869e-1d6867285bb1.png)\r\n\r\nHere, the actual response sent by the server is in long format (number of milliseconds since 1970). But the swagger is showing Date format as `\"ModifiedOn\": \"2018-02-20T17:23:58.907Z\"`. Which is kind of misleading. \r\n\r\n### Expected Behavior\r\n`\"ModifiedOn\": \"1519147559685\"`\r\nOr something like this \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments/368411792","html_url":"https://github.com/swagger-api/swagger-core/issues/2680#issuecomment-368411792","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/2680","id":368411792,"user":{"login":"ghsatpute","id":3480767,"avatar_url":"https://avatars3.githubusercontent.com/u/3480767?v=4","gravatar_id":"","url":"https://api.github.com/users/ghsatpute","html_url":"https://github.com/ghsatpute","followers_url":"https://api.github.com/users/ghsatpute/followers","following_url":"https://api.github.com/users/ghsatpute/following{/other_user}","gists_url":"https://api.github.com/users/ghsatpute/gists{/gist_id}","starred_url":"https://api.github.com/users/ghsatpute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghsatpute/subscriptions","organizations_url":"https://api.github.com/users/ghsatpute/orgs","repos_url":"https://api.github.com/users/ghsatpute/repos","events_url":"https://api.github.com/users/ghsatpute/events{/privacy}","received_events_url":"https://api.github.com/users/ghsatpute/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T07:23:15Z","updated_at":"2018-02-26T07:23:15Z","author_association":"NONE","body":"I tried that using writing annotations\r\n```\r\n\t@ApiModelProperty(value = \"Start time of launch\", required=true, dataType = \"long\")\r\n\tprivate Date createdOn;\r\n```\r\nI'm getting the same output as above.\r\n\r\nAm I missing something?"}}
{"actor":{"display_login":"ghsatpute"}}