Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Setting flashcard expiration time does not work https://github.com/siyuan-note/siyuan/issues/12743

Daniel8c53bc54e232
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts
index 85521920fe..c44205e532 100644
--- a/app/src/card/openCard.ts
+++ b/app/src/card/openCard.ts
@@ -312,7 +312,7 @@ export const bindCardEvent = async (options: {
fetchPost("/api/riff/batchSetRiffCardsDueTime", {
cardDues: [{
id: currentCard.cardID,
- due: dayjs().day(parseInt(inputElement.value)).format("YYYYMMDDHHmmss")
+ due: dayjs().add(parseInt(inputElement.value), 'day').format("YYYYMMDDHHmmss")
}]
}, () => {
actionElements[0].classList.add("fn__none");