diff --git a/src/pages/Howto/Content/Howto/HowtoDescription/HowtoDescription.tsx b/src/pages/Howto/Content/Howto/HowtoDescription/HowtoDescription.tsx index 593e17c5cc..54456d24f2 100644 --- a/src/pages/Howto/Content/Howto/HowtoDescription/HowtoDescription.tsx +++ b/src/pages/Howto/Content/Howto/HowtoDescription/HowtoDescription.tsx @@ -28,7 +28,14 @@ export default class HowtoDescription extends React.PureComponent { public durationSincePosted(postDate: Date) { const daysSince: number = differenceInDays(new Date(), new Date(postDate)) - return `${daysSince} days ago` + switch (daysSince) { + case 0: + return 'today' + case 1: + return `${daysSince} day ago` + default: + return `${daysSince} days ago` + } } public render() { @@ -66,7 +73,7 @@ export default class HowtoDescription extends React.PureComponent { ))} - + By {howto._createdBy}  |