1
0
mirror of https://github.com/mgerb/ServerStatus synced 2026-01-10 03:03:04 +00:00

fix: date format

closes #29
This commit is contained in:
2020-06-13 12:47:00 -05:00
parent 8f430b5982
commit bf79d376f3

View File

@@ -153,7 +153,7 @@ func MessageHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
func fmtDuration(d time.Duration) string {
days := int(d.Hours()) / 24
hours := int(d.Hours()) % 60
hours := int(d.Hours()) % 24
minutes := int(d.Minutes()) % 60
seconds := int(d.Seconds()) % 60