Revert "issue #4747 - add date and time units to singlestat panel."

This commit is contained in:
Carl Bergquist 2016-06-20 11:02:29 +02:00 committed by GitHub
parent 8efa94e42a
commit b6f9d9feb0

View File

@ -1,9 +1,8 @@
define([ define([
'jquery', 'jquery',
'lodash', 'lodash',
'moment'
], ],
function($, _, moment) { function($, _) {
'use strict'; 'use strict';
var kbn = {}; var kbn = {};
@ -581,20 +580,6 @@ function($, _, moment) {
} }
}; };
// Date and time
kbn.toDateTime = function(size, timeScale) {
var datetime = moment(size * timeScale);
return datetime.format('YYYY-MM-DD hh:mm:ss');
};
kbn.valueFormats.datems = function(size) {
return kbn.toDateTime(size, 1000);
};
kbn.valueFormats.dates = function(size) {
return kbn.toDateTime(size, 1);
};
///// FORMAT MENU ///// ///// FORMAT MENU /////
kbn.getUnitFormats = function() { kbn.getUnitFormats = function() {
@ -633,13 +618,6 @@ function($, _, moment) {
{text: 'days (d)', value: 'd' }, {text: 'days (d)', value: 'd' },
] ]
}, },
{
text: 'date and time',
submenu: [
{text: 'date (ms)', value: 'datems'},
{text: 'date (s)', value: 'dates' }
]
},
{ {
text: 'data', text: 'data',
submenu: [ submenu: [