Comparing version 1.0.2 to 1.0.3
@@ -254,4 +254,3 @@ function AIODate(){ | ||
date.push(dateObject.getHours()); | ||
if(unit === 'day'){date[3] = 0;} | ||
if(unit === 'month'){date[2] = 1; date[3] = 0;} | ||
date.push(dateObject.getMinutes()); | ||
return date; | ||
@@ -261,5 +260,3 @@ }, | ||
var date = new Date(); | ||
var result = [date.getFullYear(),date.getMonth() + 1,date.getDate(),date.getHours()] | ||
if(unit === 'day'){date[3] = 0;} | ||
if(unit === 'month'){date[2] = 1; date[3] = 0;} | ||
var result = [date.getFullYear(),date.getMonth() + 1,date.getDate(),date.getHours(),date.getMinutes()] | ||
return result; | ||
@@ -266,0 +263,0 @@ } |
{ | ||
"name": "aio-date", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
12915
282