Fix an issue that SRT time format is incorrect

This commit is contained in:
subdiox 2021-04-09 02:51:38 +09:00
parent 0990f82bf9
commit 169ea2aad4

View file

@ -161,7 +161,7 @@ function toSubsTime(str, srtFormat) {
sx = sx.toFixed(msLen).split('.');
n.unshift(padTimeNum('.', sx[1], msLen));
n.unshift(padTimeNum((srtFormat ? ',' : '.'), sx[1], msLen));
sx = Number(sx[0]);
n.unshift(padTimeNum(':', sx%60, 2));