Преглед на файлове

Swap build-* to use UTC instead of local time

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Tianon Gravi преди 10 години
родител
ревизия
aa54a93f74
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 3 1
      hack/make/build-deb
  2. 3 1
      hack/make/build-rpm

+ 3 - 1
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

+ 3 - 1
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