Skip to content

Commit

Permalink
Name days upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzyCzech committed May 15, 2024
1 parent 7337834 commit 884cf01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"holidays-cs": "^2.0.1",
"international-days-cs": "^0.0.4",
"luxon": "^3.4.4",
"namedays-cs": "^0.0.13"
"namedays-cs": "^0.1.0"
}
}
4 changes: 2 additions & 2 deletions src/calendar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BskyAgent, RichText} from "@atproto/api";
import {getDayMeta} from "holidays-cs";
import {DateTime} from "luxon";
import {getNameDayArray} from "namedays-cs";
import {getNameDay} from "namedays-cs";
import {getInternationalDays} from "international-days-cs";

const CALENDAR_APP_PASSWORD = process.env.CALENDAR_APP_PASSWORD;
Expand All @@ -20,7 +20,7 @@ let date = DateTime.local();
let text = `Dobré ráno je ${date.setLocale('cs').toFormat('cccc')}, ${date.setLocale('cs').toFormat('d. LLLL yyyy')}:`;

// Name day
const names = getNameDayArray(date.toJSDate());
const names = getNameDay(date.toJSDate());
if (names.length > 0) {
text += `\n\nSvátek má ${names.join(' a ')}`;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ multiformats@^9.4.2, multiformats@^9.9.0:
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.9.0.tgz#c68354e7d21037a8f1f8833c8ccd68618e8f1d37"
integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==

namedays-cs@^0.0.13:
version "0.0.13"
resolved "https://registry.yarnpkg.com/namedays-cs/-/namedays-cs-0.0.13.tgz#ba053b04e9d7f1c6add3aa60e62de92307c34caf"
integrity sha512-jxrs3XATEiNQ+ueuqW29ond/NBKgHLotfe6z2GgOfDK4HGYHV6ikwUmBVSbeXxVdvoaMifkLleqH/yJyqHTRBw==
namedays-cs@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/namedays-cs/-/namedays-cs-0.1.0.tgz#100e66423d22ff079a363abd7c4e617a8eaac712"
integrity sha512-0KRCUP53kVR/cbdM7NRGtSovCXJfMWxzQNA1fWWY7GJlr3W1ZJQDUiM85zmsA4Io/GqAfEuRh/hb8HZO0KdZQQ==

tlds@^1.234.0:
version "1.252.0"
Expand Down

0 comments on commit 884cf01

Please sign in to comment.