Skip to content

Commit

Permalink
don't show 54 years ago
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Nov 18, 2024
1 parent 9c81265 commit 2351cb9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/nodes/NodeListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,14 @@ export default {
methods: {
getNodeLongName: (nodeId) => NodeUtils.getNodeLongName(nodeId),
formatUnixSecondsAgo(unixSeconds) {
return TimeUtils.getTimeAgoShortHand(moment.unix(unixSeconds).toDate());
// check if date is known
if(unixSeconds > 0){
return TimeUtils.getTimeAgoShortHand(moment.unix(unixSeconds).toDate());
}
return "Unknown";
},
},
computed: {
Expand Down

0 comments on commit 2351cb9

Please sign in to comment.