There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(server): use iso date string as history query input (#5035)
liuyi3710bcdc1493
diff --git a/packages/backend/server/src/modules/workspaces/controller.ts b/packages/backend/server/src/modules/workspaces/controller.tsindex fb4921afa1..6af8867d5a 100644--- a/packages/backend/server/src/modules/workspaces/controller.ts+++ b/packages/backend/server/src/modules/workspaces/controller.ts@@ -119,12 +119,7 @@ export class WorkspacesController {const docId = new DocID(guid, ws);let ts;try {- const timeNum = parseInt(timestamp);- if (Number.isNaN(timeNum)) {- throw new Error('Invalid timestamp');- }-- ts = new Date(timeNum);+ ts = new Date(timestamp);} catch (e) {throw new Error('Invalid timestamp');}