summaryrefslogtreecommitdiff
path: root/indexHtml.go
diff options
context:
space:
mode:
Diffstat (limited to 'indexHtml.go')
-rw-r--r--indexHtml.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/indexHtml.go b/indexHtml.go
index 48a1a01..c653221 100644
--- a/indexHtml.go
+++ b/indexHtml.go
@@ -4,6 +4,8 @@ import (
"fmt"
"net/http"
"strings"
+
+ "go.wit.com/lib/cobol"
)
func indexHeader(w http.ResponseWriter) {
@@ -102,7 +104,7 @@ func indexBodyRepo(w http.ResponseWriter, gourl string, giturl string, desc stri
if repo, ok := gitMap[gourl]; ok {
version = repo.GetLastTag()
age := repo.NewestAge()
- vtime = formatDuration(age)
+ vtime = cobol.FormatDuration(age)
dver = repo.GetDevelVersion()
}
// log.Info("gopath", gourl, "dur", vtime, "version", version)