Fix Danmaku ass timestamp when it's greater than 1 hour

When the timestamp in ass is greater than 1 hour, there's a bug that the minute part can exceed 59, which is caused by it's not mod by 60. This 1-liner PR should fix it. But since the original project doesn't have build scripts, I'm not able to verify it locally.
pull/219/head
Song Xie 4 years ago
parent 2c13369532
commit 338e87ce37

@ -62,6 +62,7 @@ namespace Core.danmaku2ass
int second = (int)(i % 60.0f);
int hour = (int)Math.Floor(min / 60.0);
min %= 60;
return $"{hour:D}:{min:D2}:{second:D2}.{dec:D2}";
}

Loading…
Cancel
Save