forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 6.0.x
This commit is contained in:
@@ -512,7 +512,7 @@ class ApiClient {
|
||||
*/
|
||||
static parseDate(str) {
|
||||
if (isNaN(str)) {
|
||||
return new Date(str);
|
||||
return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3'));
|
||||
}
|
||||
return new Date(+str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user