Skip to content

Commit d8be2f1

Browse files
authored
Merge pull request grafana#5389 from grafana/revert-5383-issue-4747
Revert "issue grafana#4747 - add date and time units to singlestat panel."
2 parents 8efa94e + b6f9d9f commit d8be2f1

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

public/app/core/utils/kbn.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
define([
22
'jquery',
33
'lodash',
4-
'moment'
54
],
6-
function($, _, moment) {
5+
function($, _) {
76
'use strict';
87

98
var kbn = {};
@@ -581,20 +580,6 @@ function($, _, moment) {
581580
}
582581
};
583582

584-
// Date and time
585-
kbn.toDateTime = function(size, timeScale) {
586-
var datetime = moment(size * timeScale);
587-
return datetime.format('YYYY-MM-DD hh:mm:ss');
588-
};
589-
590-
kbn.valueFormats.datems = function(size) {
591-
return kbn.toDateTime(size, 1000);
592-
};
593-
594-
kbn.valueFormats.dates = function(size) {
595-
return kbn.toDateTime(size, 1);
596-
};
597-
598583
///// FORMAT MENU /////
599584

600585
kbn.getUnitFormats = function() {
@@ -633,13 +618,6 @@ function($, _, moment) {
633618
{text: 'days (d)', value: 'd' },
634619
]
635620
},
636-
{
637-
text: 'date and time',
638-
submenu: [
639-
{text: 'date (ms)', value: 'datems'},
640-
{text: 'date (s)', value: 'dates' }
641-
]
642-
},
643621
{
644622
text: 'data',
645623
submenu: [

0 commit comments

Comments
 (0)