Commit d728a3c5 by Leonard Gram

build: publisher uses local time.

Previously the local day was used but the timestamp
was set to midnight.
parent 5da9760a
......@@ -16,7 +16,6 @@ type releaseFromExternalContent struct {
func (re releaseFromExternalContent) prepareRelease(baseArchiveUrl, whatsNewUrl string, releaseNotesUrl string) (*release, error) {
version := re.rawVersion[1:]
now := time.Now()
isBeta := strings.Contains(version, "beta")
builds := []build{}
......@@ -30,7 +29,7 @@ func (re releaseFromExternalContent) prepareRelease(baseArchiveUrl, whatsNewUrl
r := release{
Version: version,
ReleaseDate: time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local),
ReleaseDate: time.Now(),
Stable: !isBeta,
Beta: isBeta,
Nightly: false,
......
......@@ -20,10 +20,9 @@ type releaseLocalSources struct {
func (r releaseLocalSources) prepareRelease(baseArchiveUrl, whatsNewUrl string, releaseNotesUrl string) (*release, error) {
buildData := r.findBuilds(baseArchiveUrl)
now := time.Now()
rel := release{
Version: buildData.version,
ReleaseDate: time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local),
ReleaseDate: time.Now(),
Stable: false,
Beta: false,
Nightly: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment