Fixed current time > 1hr
This commit is contained in:
parent
a53b745b6a
commit
f98c7d109b
@ -53,7 +53,17 @@ namespace NadekoBot.Modules.Music.Classes
|
||||
|
||||
public string PrettyFullName => $"{PrettyName}\n\t\t`{PrettyTotalTime} | {PrettyProvider} | {QueuerName}`";
|
||||
|
||||
public string PrettyCurrentTime => CurrentTime.ToString(@"mm\:ss");
|
||||
public string PrettyCurrentTime {
|
||||
get {
|
||||
var time = CurrentTime.ToString(@"mm\:ss");
|
||||
var hrs = (int)CurrentTime.TotalHours;
|
||||
|
||||
if (hrs > 0)
|
||||
return hrs + ":" + time;
|
||||
else
|
||||
return time;
|
||||
}
|
||||
}
|
||||
|
||||
private string PrettyTotalTime {
|
||||
get {
|
||||
|
Loading…
Reference in New Issue
Block a user