summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar klea2025-12-02 21:39:35 +0100
committerGravatar klea2025-12-02 21:39:35 +0100
commitb9228154854484fe2e6faae095c6fd509062340b (patch)
treef81cdbc3cd905d7cdb2568e114f42efaf8c06c21 /bin
parentfossil-archive: fix ftime (diff)
signature
fossil-archive: use current time instead of time=1
ssl :(
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fossil-archive4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fossil-archive b/bin/fossil-archive
index a2dd45e..f62c116 100755
--- a/bin/fossil-archive
+++ b/bin/fossil-archive
@@ -10,7 +10,7 @@ readonly mepath="$(readlink -m $(dirname $0)/..)"
starttime="$(date +%s)"
ddate() { date -u "-d@$starttime" "$1"; }
-ftime() { faketime -f "$(date -u -d@1 '+%Y-%m-%d %H:%M:%SZ') x0" "$@"; }
+ftime() { faketime -f "$(ddate '+%Y-%m-%d %H:%M:%SZ') x0" "$@"; }
base_dir="$1"; shift
base_url="$1"; shift
@@ -64,7 +64,7 @@ iauploadstreamopts=()
metadata=(
"collection:open_source_software"
"date:$(ddate '+%Y-%m-%d')"
- "description:Fossil repos for repositories under $base_url as of $(ddate '+%Y-%m-%d %H:%M') UTC. Retrieved with $(fossil version|sed -e 's,^This is ,,' -e 's,^,(,;s,$,),'), see corresponding log files for command(s) ran"
+ "description:Fossil repos for repositories under $base_url as of $(ddate '+%Y-%m-%d %H:%M:%S') UTC. Retrieved with $(fossil version|sed -e 's,^This is ,,' -e 's,^,(,;s,$,),'), see corresponding log files for command(s) ran"
"mediatype:software"
"title:Fossil $base_url_hostonly repository clones ($(ddate '+%Y-%m-%d'))"
)