summaryrefslogtreecommitdiff
path: root/indexHtml.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 06:58:42 -0500
committerJeff Carr <[email protected]>2025-10-16 06:58:42 -0500
commitc0d01a48275761e42c59655a7554e9b4fe352cc9 (patch)
treef31de6aca81d32bb8fbd8f1d1eef252b9f0a28d9 /indexHtml.go
parent63b9fc04afa03728a1e8fc805c7064bdd30d6d6c (diff)
moved to standard table locationv0.22.129
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)