ng-jhipster
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -69,3 +69,3 @@ { | ||
}, | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"scripts": { | ||
@@ -72,0 +72,0 @@ "cleanup": "rimraf src/*.d.ts src/**/*.d.ts src/*.js src/**/*.js aot/* tests/**/*.d.ts tests/**/*.js tests/*.d.ts tests/*.js", |
@@ -75,3 +75,9 @@ /* | ||
var dateParts = date.split(/\D+/); | ||
return new Date(dateParts[0], dateParts[1] - 1, dateParts[2], dateParts[3], dateParts[4], dateParts[5]); | ||
if (dateParts.length === 7) { | ||
return new Date(dateParts[0], dateParts[1] - 1, dateParts[2], dateParts[3], dateParts[4], dateParts[5], dateParts[6]); | ||
} | ||
if (dateParts.length === 6) { | ||
return new Date(dateParts[0], dateParts[1] - 1, dateParts[2], dateParts[3], dateParts[4], dateParts[5]); | ||
} | ||
return new Date(dateParts[0], dateParts[1] - 1, dateParts[2], dateParts[3], dateParts[4]); | ||
}; | ||
@@ -78,0 +84,0 @@ return JhiDateUtils; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1096253
9511