From: Bernhard Froehlich Date: Wed, 21 Jun 2017 13:49:57 +0000 (+0000) Subject: Make build_timestamp generation less platform specific. This also slightly changes... X-Git-Tag: v4.2.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e6cde0e0ea2d8451a27e9d16572d0797e8d4ef8;p=thirdparty%2Ftvheadend.git Make build_timestamp generation less platform specific. This also slightly changes the format of the timezone offset. $ date -Iseconds 2017-06-21T13:33:15+02:00 $ date +%Y-%m-%dT%H:%M:%S%z 2017-06-21T13:33:24+0200 --- diff --git a/Makefile b/Makefile index 844edc46e..289e90f63 100644 --- a/Makefile +++ b/Makefile @@ -671,7 +671,7 @@ include ${ROOTDIR}/support/${OSENV}.mk $(BUILDDIR)/timestamp.c: FORCE @mkdir -p $(dir $@) @echo '#include "build.h"' > $@ - @echo 'const char* build_timestamp = "'`date -Iseconds`'";' >> $@ + @echo 'const char* build_timestamp = "'`date +%Y-%m-%dT%H:%M:%S%z`'";' >> $@ $(BUILDDIR)/timestamp.o: $(BUILDDIR)/timestamp.c $(pCC) -c -o $@ $<