💥 fix(modules/recording): minutes count is wrong

use `startedAtSeconds`(the base seconds) instead of `seconds`(the second count that resets when it hits 60)
This commit is contained in:
retrozinndev
2025-09-27 15:54:33 -03:00
parent 6d55afb3e9
commit de3a1e2037
+1 -1
View File
@@ -73,7 +73,7 @@ export class Recording extends GObject.Object {
if(startedAtSeconds <= 0) return "00:00";
const seconds = Math.floor(startedAtSeconds % 60);
const minutes = Math.floor(seconds / 60);
const minutes = Math.floor(startedAtSeconds / 60);
const hours = Math.floor(minutes / 60);
return `${hours > 0 ? `${hours < 10 ? '0' : ""}${hours}` : ""}${ minutes < 10 ? `0${minutes}` : minutes }:${ seconds < 10 ? `0${seconds}` : seconds }`;