From 3ba0b1a1d307b8c69861f8abe1184dc55841d921 Mon Sep 17 00:00:00 2001 From: wlren Date: Mon, 10 Oct 2022 01:40:45 +0800 Subject: [PATCH] [questions][ui] set fixed sample date --- apps/portal/src/utils/questions/constants.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/portal/src/utils/questions/constants.ts b/apps/portal/src/utils/questions/constants.ts index be07e72c..966e1a1f 100644 --- a/apps/portal/src/utils/questions/constants.ts +++ b/apps/portal/src/utils/questions/constants.ts @@ -87,7 +87,7 @@ export const SAMPLE_ANSWER = { authorName: 'Jeff Sieu', commentCount: 10, content: 'This is a sample answer', - createdAt: new Date(), + createdAt: new Date(2014, 8, 1, 11, 30, 40), upvoteCount: 10, }; @@ -95,7 +95,7 @@ export const SAMPLE_QUESTION_COMMENT = { authorImageUrl: 'https://avatars.githubusercontent.com/u/66356390?v=4', authorName: 'Jeff Sieu', content: 'This is a sample question comment', - createdAt: new Date(), + createdAt: new Date(2014, 8, 1, 11, 30, 40), upvoteCount: 10, }; @@ -103,6 +103,6 @@ export const SAMPLE_ANSWER_COMMENT = { authorImageUrl: 'https://avatars.githubusercontent.com/u/66356390?v=4', authorName: 'Jeff Sieu', content: 'This is an sample answer comment', - createdAt: new Date(), + createdAt: new Date(2014, 8, 1, 11, 30, 40), upvoteCount: 10, };