]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
Use ISO 8601-like date format (without strict)
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 14 Nov 2017 22:49:19 +0000 (22:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 14 Nov 2017 22:49:19 +0000 (22:49 +0000)
Some older versions of Git don't support %cI, yet

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index 3b49b1442c6385b225e27dbe54d3939ea713e732..7d7cb9c3688f45917227afad0342392e25211a91 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -62,7 +62,7 @@ build() {
        git reset --hard "${commit_new}"
 
        #local now="$(date -u +"%Y-%m-%d-%H:%M")"
-       local now="$(git log --format="%cI" -1 "${commit_new}")"
+       local now="$(git log --format="%ci" -1 "${commit_new}")"
 
        local targets="$(git config build.targets)"
        [ -z "${targets}" ] && targets="i586"