Apply suggestion from @CommanderStorm

This commit is contained in:
Frank Elsinga 2026-01-18 13:33:10 +01:00 committed by GitHub
parent 34dcbbffc5
commit 6b635ff861
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,6 +128,7 @@ class Discord extends NotificationProvider {
// Format duration as human-readable string (e.g., "1h 23m", "45m 30s")
// TODO: Update below to Intl.DurationFormat("en", { style: "short" }).format(duration) once we are on a newer node version
// TODO: Update below to Intl.DurationFormat("en", { style: "short" }).format(duration) once we are on a newer node version
const hours = Math.floor(durationSeconds / 3600);
const minutes = Math.floor((durationSeconds % 3600) / 60);
const seconds = durationSeconds % 60;