noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

commit: 07a2e8788196d5db3525cd55c2db259b83160fff
parent: dad7381cf9660acd82f60a0b5a15dab6e0f55ab4
author: Chris Noxz <chris@noxz.tech>
date:   Sat, 25 Jun 2022 18:23:36 +0200
fix git date format rendering
Mbuild7+++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/build b/build
@@ -602,7 +602,7 @@ render_git() {
 				"${git_pp}"                                                 \
 				"${git_description}"                                        \
 				"${git_owner}"                                              \
-				"$(git -C "${repo}" log -1 --date=format:"%Y-%m-%d %T" --format=%ai)")
+				"$(git -C "${repo}" log -1 --format=%ai)")
 
 		[ -f "$repo/fork" ]                                                 \
 			&& git_forks="$(printf '%s%s' "${git_forks}" "${git_buffer}")"  \
@@ -668,7 +668,6 @@ render_git_commits() {
 		a="<a href=\"//${1}/git/${a}\">${a%.*}</a>"
 		git -C "${repo}" log -n "${SITE_GIT_COMMIT_COUNT}"                  \
 			--no-merges                                                     \
-			--date="format:%Y-%m-%d %H:%M:%S"                               \
 			--pretty="format:%at:%ai [$a] %s"
 		echo
 	done                                                                    \
@@ -681,8 +680,8 @@ render_git_commits() {
 		}
 
 		{
-			printf "<li><span class=\"log-date\">%s %s</span>",$1,$2;
-			$1=$2="";
+			printf "<li><span class=\"log-date\">%s %s %s</span>",$1,$2,$3;
+			$1=$2=$3="";
 			$0=$0;
 		}