From 77c62581e88dee07cfca0609d777cade2e6df58a Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 3 Jun 2015 09:56:46 -0700 Subject: [PATCH] Swap build-* to use UTC instead of local time Signed-off-by: Andrew "Tianon" Page Upstream-commit: aa54a93f749e2048957eb28e6045770672cb8838 Component: engine --- components/engine/hack/make/build-deb | 4 +++- components/engine/hack/make/build-rpm | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/engine/hack/make/build-deb b/components/engine/hack/make/build-deb index 223b4938a6..90f96bd54e 100644 --- a/components/engine/hack/make/build-deb +++ b/components/engine/hack/make/build-deb @@ -1,8 +1,10 @@ #!/bin/bash set -e -# subshell so that we can export PATH without breaking other things +# subshell so that we can export PATH and TZ without breaking other things ( + export TZ=UTC # make sure our "date" variables are UTC-based + source "${MAKEDIR}/.integration-daemon-start" # TODO consider using frozen images for the dockercore/builder-deb tags diff --git a/components/engine/hack/make/build-rpm b/components/engine/hack/make/build-rpm index 3a7bfd4134..8de967317c 100644 --- a/components/engine/hack/make/build-rpm +++ b/components/engine/hack/make/build-rpm @@ -1,8 +1,10 @@ #!/bin/bash set -e -# subshell so that we can export PATH without breaking other things +# subshell so that we can export PATH and TZ without breaking other things ( + export TZ=UTC # make sure our "date" variables are UTC-based + source "$(dirname "$BASH_SOURCE")/.integration-daemon-start" # TODO consider using frozen images for the dockercore/builder-rpm tags