From c5874f2240e92f3239754649783c605af99d9162 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Tue, 5 Feb 2019 10:40:49 -0800 Subject: [PATCH] Fix the date rendering to sync between local & CI. Addresses part of #243. The `date` command in Travis's build image renders the local time (%X) including an AM/PM marker and an extra space. Since we want HH:MM:SS specifically, rewrite the expression to use that explicitly. Signed-off-by: M. J. Fromberger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index af4b48d..36c9272 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ BUILD_PATH := $(BASE_PATH)/build CMD_PATH := $(BASE_PATH)/cmd # Build information -BUILD ?= $(shell date +%FT%X%z) +BUILD ?= $(shell date +%FT%H:%M:%S%z) GIT_COMMIT=$(shell git rev-parse HEAD | cut -c1-7) GIT_DIRTY=$(shell test -n "`git status --porcelain`" && echo "-dirty" || true) DEV_PREFIX := dev