Change default dates
Signed-off-by: Mark Anderson <manderson@hashicorp.com>
This commit is contained in:
parent
32a824c1b9
commit
8fc25aefcf
|
@ -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),
|
||||
|
|
|
@ -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…
Reference in New Issue