diff options
| author | 2025-12-02 21:39:35 +0100 | |
|---|---|---|
| committer | 2025-12-02 21:39:35 +0100 | |
| commit | b9228154854484fe2e6faae095c6fd509062340b (patch) | |
| tree | f81cdbc3cd905d7cdb2568e114f42efaf8c06c21 | |
| parent | fossil-archive: fix ftime (diff) | |
| signature | ||
fossil-archive: use current time instead of time=1
ssl :(
| -rwxr-xr-x | bin/fossil-archive | 4 |
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'))" ) |
