mirror of https://github.com/ppy/osu
Fix SongProgressInfo timespan formatting
This commit is contained in:
parent
53b11155d1
commit
a0c643fae5
|
@ -92,6 +92,6 @@ protected override void Update()
|
|||
}
|
||||
}
|
||||
|
||||
private string formatTime(TimeSpan timeSpan) => $"{(timeSpan < TimeSpan.Zero ? "-" : "")}{timeSpan.Duration().TotalMinutes:N0}:{timeSpan.Duration().Seconds:D2}";
|
||||
private string formatTime(TimeSpan timeSpan) => $"{(timeSpan < TimeSpan.Zero ? "-" : "")}{Math.Floor(timeSpan.Duration().TotalMinutes)}:{timeSpan.Duration().Seconds:D2}";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue