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
7dc923a2
Commit
7dc923a2
authored
Oct 01, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(timepicker): fixed displaying of customk time ranges, #2861
parent
f0f791d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
public/app/core/utils/rangeutil.ts
+1
-1
public/test/specs/core/utils/rangeutil_specs.ts
+5
-0
No files found.
public/app/core/utils/rangeutil.ts
View file @
7dc923a2
...
...
@@ -106,7 +106,7 @@ _.each(rangeOptions, function (frame) {
}
}
}
else
{
opt
.
display
=
'parse error'
;
opt
.
display
=
opt
.
from
+
' to '
+
opt
.
to
;
opt
.
invalid
=
true
;
}
...
...
public/test/specs/core/utils/rangeutil_specs.ts
View file @
7dc923a2
...
...
@@ -56,6 +56,11 @@ describe("rangeUtil", () => {
expect
(
text
).
to
.
be
(
'Last 1 hour'
)
});
it
(
'Date range with rounding ranges'
,
()
=>
{
var
text
=
rangeUtil
.
describeTimeRange
({
from
:
'now/d+6h'
,
to
:
'now'
});
expect
(
text
).
to
.
be
(
'now/d+6h to now'
)
});
it
(
'Date range with absolute to now'
,
()
=>
{
var
text
=
rangeUtil
.
describeTimeRange
({
from
:
moment
([
2014
,
10
,
10
,
2
,
3
,
4
]),
to
:
'now'
});
expect
(
text
).
to
.
be
(
'Nov 10, 2014 02:03:04 to a few seconds ago'
)
...
...
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