From aee3922767a328edbbd35d6799facd534d4dadd8 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Mon, 17 Feb 2020 14:52:54 -0700 Subject: [PATCH] fix big hours --- basicstopwatch.go | 2 +- basictimer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basicstopwatch.go b/basicstopwatch.go index b6cdc99..f0c07af 100644 --- a/basicstopwatch.go +++ b/basicstopwatch.go @@ -18,7 +18,7 @@ func (t *BasicStopwatch) left() string { return fmt.Sprintf( "%02d:%02d:%02d", int(cur.Hours()), - int(cur.Minutes()), + int(cur.Minutes())%60, int(cur.Seconds())%60, ) } diff --git a/basictimer.go b/basictimer.go index 7b020b3..0a6030f 100644 --- a/basictimer.go +++ b/basictimer.go @@ -18,7 +18,7 @@ func (t *BasicTimer) left() string { return fmt.Sprintf( "%02d:%02d:%02d", int(cur.Hours()), - int(cur.Minutes()), + int(cur.Minutes())%60, int(cur.Seconds())%60, ) }