karl-common-util
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -41,5 +41,5 @@ "use strict"; | ||
var day = this.getDate().toString().padStart(2, "0"); | ||
var hour = this.getHours(); | ||
var minute = this.getMinutes(); | ||
var second = this.getSeconds(); | ||
var hour = this.getHours().toString().padStart(2, "0"); | ||
var minute = this.getMinutes().toString().padStart(2, "0"); | ||
var second = this.getSeconds().toString().padStart(2, "0"); | ||
return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second; | ||
@@ -46,0 +46,0 @@ }; |
{ | ||
"name": "karl-common-util", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "karl common lib for client and server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -26,5 +26,5 @@ if (!Date.prototype.add) { | ||
let day = this.getDate().toString().padStart(2, "0") | ||
let hour = this.getHours() | ||
let minute = this.getMinutes() | ||
let second = this.getSeconds() | ||
let hour = this.getHours().toString().padStart(2, "0") | ||
let minute = this.getMinutes().toString().padStart(2, "0") | ||
let second = this.getSeconds().toString().padStart(2, "0") | ||
return `${year}-${month}-${day} ${hour}:${minute}:${second}` | ||
@@ -31,0 +31,0 @@ } |
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
42360