Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
0a2c23c1
Commit
0a2c23c1
authored
3 years ago
by
ValarDragon
Browse files
Options
Download
Email Patches
Plain Diff
Fix CLI bug with start-time being blank
parent
e5ee4fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/incentives/client/cli/tx.go
+1
-1
x/incentives/client/cli/tx.go
with
1 addition
and
1 deletion
+1
-1
x/incentives/client/cli/tx.go
+
1
-
1
View file @
0a2c23c1
...
...
@@ -59,7 +59,7 @@ func NewCreateGaugeCmd() *cobra.Command {
return
err
}
if
timeStr
==
""
{
// empty start time
// do nothing
startTime
=
time
.
Unix
(
0
,
0
)
}
else
if
timeUnix
,
err
:=
strconv
.
ParseInt
(
timeStr
,
10
,
64
);
err
==
nil
{
// unix time
startTime
=
time
.
Unix
(
timeUnix
,
0
)
}
else
if
timeRFC
,
err
:=
time
.
Parse
(
time
.
RFC3339
,
timeStr
);
err
==
nil
{
// RFC time
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets