Skip to content

Commit

Permalink
Don't include Torah memo for timed Chanukah events
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Aug 25, 2022
1 parent e52df76 commit 7dc205a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/icalendar",
"version": "4.18.1",
"version": "4.18.2",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"keywords": [
"ical",
Expand All @@ -24,8 +24,8 @@
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
},
"dependencies": {
"@hebcal/core": "^3.42.2",
"@hebcal/rest-api": "^4.0.0",
"@hebcal/core": "^3.42.3",
"@hebcal/rest-api": "^4.1.0",
"murmurhash3": "^0.5.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/icalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ const HOLIDAY_IGNORE_MASK = flags.DAF_YOMI | flags.OMER_COUNT |
* @return {string}
*/
function makeTorahMemo(ev, il) {
if (ev.getFlags() & HOLIDAY_IGNORE_MASK) {
if ((ev.getFlags() & HOLIDAY_IGNORE_MASK) || ev.eventTime) {
return '';
}
const hd = ev.getDate();
Expand Down
10 changes: 5 additions & 5 deletions src/icalendar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ test('appendHebrewToSubject', (t) => {

test('chanukah-candles', (t) => {
const options = {
start: new Date(2020, 11, 10),
end: new Date(2020, 11, 10),
start: new Date(2020, 11, 11),
end: new Date(2020, 11, 11),
location: Location.lookup('Boston'),
candlelighting: true,
emoji: true,
Expand All @@ -335,9 +335,9 @@ test('chanukah-candles', (t) => {
'BEGIN:VEVENT',
'DTSTAMP:X',
'CATEGORIES:Holiday',
'SUMMARY:🕎1️⃣ Chanukah: 1 Candle',
'DTSTART;TZID=America/New_York:20201210T164300',
'DTEND;TZID=America/New_York:20201210T164300',
'SUMMARY:🕎2️⃣ Chanukah: 2 Candles',
'DTSTART;TZID=America/New_York:20201211T155300',
'DTEND;TZID=America/New_York:20201211T155300',
'UID:X',
'TRANSP:TRANSPARENT',
'X-MICROSOFT-CDO-BUSYSTATUS:FREE',
Expand Down

0 comments on commit 7dc205a

Please sign in to comment.