mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
fix: shortens hours and minutes in notif emails
This commit is contained in:
@@ -24,12 +24,12 @@ const timeSince = (date:number) : string => {
|
||||
if (interval >= 1) return `${interval} days ago`;
|
||||
|
||||
interval = Math.floor(seconds / 3600);
|
||||
if (interval >= 1) return `${interval} hours ago`;
|
||||
if (interval >= 1) return `${interval} hrs ago`;
|
||||
|
||||
interval = Math.floor(seconds / 60);
|
||||
if (interval > 1) return `${interval} minutes ago`;
|
||||
if (interval > 1) return `${interval} mins ago`;
|
||||
|
||||
return `${Math.floor(seconds)} seconds ago`;
|
||||
return `${Math.floor(seconds)} secs ago`;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user