node-red-contrib-feiertage-germany
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -139,4 +139,16 @@ /* eslint-disable prefer-destructuring */ | ||
currentYear = currentDate.getFullYear(); // set current year | ||
currentMonth = currentDate.getMonth() + 1; // set current month | ||
currentDay = currentDate.getDate(); // set current day | ||
const mCurrentMonth = currentDate.getMonth() + 1; // set current month | ||
if (mCurrentMonth.toString().length === 1) { | ||
currentMonth = `0${mCurrentMonth}`; | ||
} else { | ||
currentMonth = mCurrentMonth; | ||
} | ||
const mCurrentDay = currentDate.getDate(); // set current day | ||
if (mCurrentDay.toString().length === 1) { | ||
currentDay = `0${mCurrentDay}`; | ||
} else { | ||
currentDay = mCurrentDay; | ||
} | ||
currentHour = currentDate.getHours(); // set current hour | ||
@@ -143,0 +155,0 @@ currentMinute = currentDate.getMinutes(); // set current minute |
@@ -30,3 +30,3 @@ { | ||
}, | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"bugs": { | ||
@@ -33,0 +33,0 @@ "url": "https://github.com/MariusLang/node-red-contrib-feiertage-germany/issues" |
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
223770
1149