Skip to content

Commit

Permalink
chore(observatory): change "{Yesterday => 1 day ago}"
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jul 2, 2024
1 parent 78e65da commit 9a923ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/observatory/results/human-duration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function displayString(date: Date) {
// up to 30 days as days
if (diffSecs < 60 * 60 * 24 * 30) {
const days = Math.floor(diffSecs / 86400);
return days === 1 ? `Yesterday` : `${days} days ago`;
return days === 1 ? `1 day ago` : `${days} days ago`;
}

// after a week, return the formatted date
Expand Down

0 comments on commit 9a923ce

Please sign in to comment.