A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix reminder can't be set in january
Abdullah Atta4a3e23c28885
diff --git a/apps/web/src/stores/reminder-store.ts b/apps/web/src/stores/reminder-store.tsindex 887819ff7..1ab036521 100644--- a/apps/web/src/stores/reminder-store.ts+++ b/apps/web/src/stores/reminder-store.ts@@ -142,12 +142,12 @@ function reminderToCronExpression(reminder: Reminder) {const dateTime = dayjs(date);if (mode === "once" || !selectedDays) {- return dateTime.format("ss mm HH DD MM * YYYY");+ return dateTime.format("00 mm HH DD MM * YYYY");} else {- const cron = dateTime.format("ss mm HH").split(" ");+ const cron = dateTime.format("00 mm HH").split(" ");if (recurringMode === "year") {cron.push(`${dateTime.date()}`); // day of month- cron.push(`${dateTime.month()}`); // month+ cron.push(`${dateTime.month() + 1}`); // monthcron.push("*"); // day of weekcron.push("*"); // year} else if (recurringMode === "week") {