Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
d728a3c5
Commit
d728a3c5
authored
Nov 05, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: publisher uses local time.
Previously the local day was used but the timestamp was set to midnight.
parent
5da9760a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
scripts/build/release_publisher/externalrelease.go
+1
-2
scripts/build/release_publisher/localrelease.go
+1
-2
No files found.
scripts/build/release_publisher/externalrelease.go
View file @
d728a3c5
...
...
@@ -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
,
...
...
scripts/build/release_publisher/localrelease.go
View file @
d728a3c5
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment