Skip to content

Commit

Permalink
Better formatting for duration
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Oct 21, 2023
1 parent e9c689b commit cef88bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/mlb/mlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"goirc/bot"
"goirc/fetch"
"goirc/util"
"sort"
"strings"
"time"
Expand Down Expand Up @@ -96,7 +97,7 @@ func PlayoffOdds(params bot.HandlerParams) error {
if err != nil {
return err
}
lastUpdatedStr := fmt.Sprintf("%.0fm ago", time.Now().Sub(*at).Minutes())
lastUpdatedStr := fmt.Sprintf("%s ago", util.Ago(time.Now().Sub(*at)))
params.Privmsgf(params.Target, "%s - %s - %s - %s", al, nl, lastUpdatedStr, "https://www.mlb.com/postseason")

return nil
Expand Down

0 comments on commit cef88bf

Please sign in to comment.