浏览代码

Merge pull request #13704 from tianon/build-utc

Swap build-* to use UTC instead of local time
Jessie Frazelle 10 年之前
父节点
当前提交
ef3e956aa2
共有 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