aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/moments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/moments.ts b/src/utils/moments.ts
index 0f8021cb..7428b1ac 100644
--- a/src/utils/moments.ts
+++ b/src/utils/moments.ts
@@ -24,8 +24,8 @@ export const getTimePosted = (date_time: string) => {
difference = now.diff(datePosted, 'hours');
time = difference + (difference === 1 ? ' hour' : ' hours');
}
- //1 day to less than 7 days
- else if (difference >= 24 * 60 * 60 && difference < 7 * 24 * 60 * 60) {
+ //Any number of days
+ else if (difference >= 24 * 60 * 60) {
difference = now.diff(datePosted, 'days');
time = difference + (difference === 1 ? ' day' : ' days');
}