From 50d4482570510ba69ae6449f7b9dd2090d0e8804 Mon Sep 17 00:00:00 2001 From: seo0o519 Date: Wed, 29 May 2024 15:22:34 +0900 Subject: [PATCH] Fix: fix diary page date & userimg error #139 --- src/components/common/DiaryInfo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/common/DiaryInfo.js b/src/components/common/DiaryInfo.js index 477d4ba..d7e6c9d 100644 --- a/src/components/common/DiaryInfo.js +++ b/src/components/common/DiaryInfo.js @@ -3,16 +3,17 @@ import styled from "styled-components"; import { COLOR } from "../../styles/color"; import PropTypes from "prop-types"; import moment from "moment"; +import defaultImageSrc from "../../assets/images/defaultProfileImg.svg"; const DiaryInfo = ({ title, date, username, userimg }) => { return ( {title} - + {username} - {moment(date, "YY-MM-DD").format("YYYY.MM.DD")} + {moment(date).format("YYYY.MM.DD")} ); };