spaces in uptime

This commit is contained in:
Kainoa Kanter
2025-10-08 17:46:45 -07:00
parent c4d1a142ab
commit 6f0d076d80
+2 -2
View File
@@ -41,7 +41,7 @@ Singleton {
return `${year}${month}${day}-${hours}${minutes}${seconds}`
}
// Format an easy to read approximate duration ex: 4h32m
// Format an easy to read approximate duration ex: 4h 32m
// Used to display the time remaining on the Battery widget, computer uptime, etc..
function formatVagueHumanReadableDuration(totalSeconds) {
if (typeof totalSeconds !== 'number' || totalSeconds < 0) {
@@ -69,7 +69,7 @@ Singleton {
parts.push(`${seconds}s`)
}
return parts.join('')
return parts.join(' ')
}
// Format a date into