commit 90ab1336f112613ea27d4031cbe4b275fd960d9a
parent 05f736febb0e9775b82f2cfaeae8a2dbf7b9f0fa
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 9 May 2021 00:23:12 +0200
parent 05f736febb0e9775b82f2cfaeae8a2dbf7b9f0fa
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 9 May 2021 00:23:12 +0200
remove relative times
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/index.nim b/src/index.nim @@ -21,7 +21,7 @@ proc reposOverview* (config: Config): seq[Category] = name: repoName, url: encodeUrl(repoName), description: config.get("gitweb.description"), - lastActivity: relativeTimeFromNow(commit.time.time), + lastActivity: commit.time.time.format("yyyy'.'MM'.'dd HH:mm"), objId: $objId ))
diff --git a/src/repoGenerator.nim b/src/repoGenerator.nim @@ -74,7 +74,7 @@ proc createCommitSummary (commit: GitCommit): CommitSummary = result.id = $commit.id result.shortId = commit.shortId - result.when = relativeTimeFromNow(commit.time.time) + result.when = commit.time.time.format("yyyy'.'MM'.'dd HH:mm") result.committerIsAuthor = (author.email == committer.email) result.authorName = author.name result.authorMail = author.email