Skip to content

Commit

Permalink
1.0.3 - maintenance release
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnos3 committed Jan 23, 2022
1 parent b2f4c58 commit c698371
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 765 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
### CHANGELOG

#### 1.0.3 - maintenance release

- merged pull requests by @rucksman
- added "isWeekendOrHolidayOrSpecialday" #21
- Add Weltfrauentag as holiday in Berlin #22
- Dependencies update

#### 1.0.2 - bug fix

- changed completely from UTC to local time, because in some time-zones day calculated wrong
Expand Down
16 changes: 8 additions & 8 deletions german-holidays.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,16 @@ <h3>References</h3>
namerAlt: 'International Women\'s Day',
month: 3,
day: 8,
regions: ['BE'],
character: characteristic.holiday
},
/* FRAUENTAG: {
name: 'Frauentag', // 8. März - Internationaler Frauentag
month: 3,
day: 8,
regions: [],
character: characteristic.actionday
},
}, */
PALMSONNTAG: {
name: 'Palmsonntag', // 7 Tage vor dem Ostersonntag
month: easterX,
Expand Down Expand Up @@ -532,13 +539,6 @@ <h3>References</h3>
regions: [],
character: characteristic.calendar
},
FRAUENTAG: {
name: 'Frauentag', // 8. März - Internationaler Frauentag
month: 3,
day: 8,
regions: [],
character: characteristic.actionday
},
APRILSCHERZ: {
name: '1. April',
month: 4,
Expand Down
4 changes: 2 additions & 2 deletions german-holidays.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ module.exports = function (RED) {
result.isHoliday = ((typeof result.holiday !== 'undefined') && (result.holiday !== null));
result.specialday = daysObjects.specialdays.find(specialday => specialday.equals(date));
result.isSpecialday = ((typeof result.specialday !== 'undefined') && (result.specialday !== null));
result.isHolidayOrSpecialday = result.isHoliday || result.isSpecialday;

if (offsetToday) {
result.dayOffset = offsetToday;
Expand All @@ -530,7 +531,6 @@ module.exports = function (RED) {
result.isSunOrHoliday = result.isSunday || result.isHoliday;
result.isWeekendOrHoliday = result.isSaturday || result.isSunday || result.isHoliday;
result.isWeekendOrHolidayOrSpecialday = result.isSaturday || result.isSunday || result.isHoliday || result.isSpecialday;
result.isHolidayOrSpecialday = result.isHoliday || result.isSpecialday;

if (result.isHoliday) {
result.id = result.holiday.id;
Expand Down Expand Up @@ -823,4 +823,4 @@ module.exports = function (RED) {
}

RED.nodes.registerType('german-holidays', germanHolidaysNode);
};
};
Loading

0 comments on commit c698371

Please sign in to comment.