Skip to content

Commit

Permalink
time fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FlamesC0der committed Dec 3, 2023
1 parent c026974 commit d9801d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def format_length(milliseconds):
if hours == 0 and minutes == 0: # seconds
return "{:02d}".format(seconds)
elif hours == 0 and minutes != 0: # minutes, seconds
return "{:02d}{:02d}".format(minutes, seconds)
return "{:02d}:{:02d}".format(minutes, seconds)
elif hours != 0 and minutes == 0: # hours, minutes, seconds
return "{:02d}:{:02d}:{:02d}".format(hours, minutes, seconds)
return ""
Expand Down

0 comments on commit d9801d9

Please # to comment.