Fix minus null minutes again.
This commit is contained in:
parent
ef73bb13d3
commit
0598930b09
|
@ -277,10 +277,13 @@
|
||||||
} else if (nm == 0 && ns == 0) {
|
} else if (nm == 0 && ns == 0) {
|
||||||
signed = '-';
|
signed = '-';
|
||||||
sec = 1;
|
sec = 1;
|
||||||
} else if (nm == 0) {
|
} else if (nm == 0 && m[1][0] == '-') {
|
||||||
signed = '-';
|
signed = '-';
|
||||||
sec = ns;
|
sec = ns;
|
||||||
sec++;
|
sec++;
|
||||||
|
} else if (nm == 0 && m[1][0] != '-') {
|
||||||
|
sec = ns;
|
||||||
|
sec--;
|
||||||
} else {
|
} else {
|
||||||
signed = '';
|
signed = '';
|
||||||
sec = nm * 60 + ns;
|
sec = nm * 60 + ns;
|
||||||
|
|
Loading…
Reference in New Issue