Shun Miyazawa 3 лет назад
Родитель
Сommit
02ad034f8c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/components/PageEditor/ConflictDiffModal.tsx

+ 1 - 1
packages/app/src/components/PageEditor/ConflictDiffModal.tsx

@@ -314,7 +314,7 @@ export const ConflictDiffModal = (props: ConflictDiffModalProps): JSX.Element =>
   const origin: IRevisionOnConflictWithStringDate = {
     revisionId: currentPage?.revision._id,
     revisionBody: currentPage?.revision.body,
-    createdAt: format(currentPage.updatedAt, 'yyyy/MM/dd HH:mm:ss'),
+    createdAt: format(new Date(currentPage.updatedAt), 'yyyy/MM/dd HH:mm:ss'),
     user: currentPage?.lastUpdateUser,
   };
   const latest: IRevisionOnConflictWithStringDate = {