mirror of https://github.com/status-im/consul.git
Change default dates
Signed-off-by: Mark Anderson <manderson@hashicorp.com>
This commit is contained in:
parent
45190d355b
commit
dd22ceccd1
|
@ -805,7 +805,7 @@ func (b *builder) build() (rt RuntimeConfig, err error) {
|
||||||
VersionPrerelease: stringVal(c.VersionPrerelease),
|
VersionPrerelease: stringVal(c.VersionPrerelease),
|
||||||
VersionMetadata: stringVal(c.VersionMetadata),
|
VersionMetadata: stringVal(c.VersionMetadata),
|
||||||
// What is a sensible default for BuildDate?
|
// 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
|
// consul configuration
|
||||||
ConsulCoordinateUpdateBatchSize: intVal(c.Consul.Coordinate.UpdateBatchSize),
|
ConsulCoordinateUpdateBatchSize: intVal(c.Consul.Coordinate.UpdateBatchSize),
|
||||||
|
|
|
@ -25,7 +25,8 @@ var (
|
||||||
VersionPrerelease = "dev"
|
VersionPrerelease = "dev"
|
||||||
|
|
||||||
// The date/time of the build (actually the HEAD commit in git, to preserve stability)
|
// 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
|
// GetHumanVersion composes the parts of the version in a way that's suitable
|
||||||
|
|
Loading…
Reference in New Issue