Change default dates

Signed-off-by: Mark Anderson <manderson@hashicorp.com>
This commit is contained in:
Mark Anderson 2022-06-09 15:55:11 -07:00
parent 32a824c1b9
commit 8fc25aefcf
2 changed files with 3 additions and 2 deletions

View File

@ -805,7 +805,7 @@ func (b *builder) build() (rt RuntimeConfig, err error) {
VersionPrerelease: stringVal(c.VersionPrerelease),
VersionMetadata: stringVal(c.VersionMetadata),
// What is a sensible default for BuildDate?
BuildDate: timeValWithDefault(c.BuildDate, time.Now()),
BuildDate: timeValWithDefault(c.BuildDate, time.Date(1970, 1, 00, 00, 00, 01, 0, time.UTC)),
// consul configuration
ConsulCoordinateUpdateBatchSize: intVal(c.Consul.Coordinate.UpdateBatchSize),

View File

@ -25,7 +25,8 @@ var (
VersionPrerelease = "dev"
// The date/time of the build (actually the HEAD commit in git, to preserve stability)
BuildDate string = "2022-06-02T18:28:32Z"
// This isn't just informational, but is also used by the licensing system. Default is chosen to be flagantly wrong.
BuildDate string = "1970-01-01T00:00:01Z"
)
// GetHumanVersion composes the parts of the version in a way that's suitable