diff --git a/net/web/src/session/conversation/topicItem/useTopicItem.hook.js b/net/web/src/session/conversation/topicItem/useTopicItem.hook.js index aac2698d..58993a1a 100644 --- a/net/web/src/session/conversation/topicItem/useTopicItem.hook.js +++ b/net/web/src/session/conversation/topicItem/useTopicItem.hook.js @@ -85,9 +85,13 @@ export function useTopicItem(topic) { let createdStr; const date = new Date(created * 1000); const now = new Date(); - if(now.getTime() - date.getTime() < 86400000) { + const offset = now.getTime() - date.getTime(); + if(offset < 86400000) { createdStr = date.toLocaleTimeString([], {hour: 'numeric', minute:'2-digit'}); } + else if (offset < 31449600000) { + createdStr = date.toLocaleDateString("en-US", {day: 'numeric', month:'numeric'}); + } else { createdStr = date.toLocaleDateString("en-US"); }