Browse Source

Change default dates

Signed-off-by: Mark Anderson <manderson@hashicorp.com>
pull/13357/head
Mark Anderson 2 years ago
parent
commit
dd22ceccd1
  1. 2
      agent/config/builder.go
  2. 3
      version/version.go

2
agent/config/builder.go

@ -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),

3
version/version.go

@ -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

Loading…
Cancel
Save