소스 검색

use getTime()

jam411 3 년 전
부모
커밋
6601abb0a3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/components/PageComment/Comment.tsx

+ 1 - 1
packages/app/src/components/PageComment/Comment.tsx

@@ -77,7 +77,7 @@ export const Comment = (props: CommentProps): JSX.Element => {
     if (comment.revision === currentRevisionId) {
       className += ' page-comment-current';
     }
-    else if (Date.parse(comment.createdAt.toString()) > Date.parse(currentRevisionCreatedAt.toString())) {
+    else if (comment.createdAt.getTime() > currentRevisionCreatedAt.getTime()) {
       className += ' page-comment-newer';
     }
     else {