Commit 06f4b017 by Rick Briganti

fixed missing module for 'moment' and jslint missing semi colon

parent f52450ae
......@@ -10,6 +10,7 @@
"url": "http://github.com/torkelo/grafana.git"
},
"devDependencies": {
"moment": "~2.5.1",
"rjs-build-analysis": "0.0.3",
"grunt": "~0.4.0",
"grunt-ngmin": "0.0.3",
......
......@@ -9,6 +9,7 @@ function (angular, _, $, config, kbn) {
'use strict';
var module = angular.module('kibana.services');
var moment = require('moment');
module.service('graphiteSrv', function($http, $q, filterSrv) {
......@@ -55,7 +56,7 @@ function (angular, _, $, config, kbn) {
date = moment.utc(date).local();
if (config.timezoneOffset) {
date = date.zone(config.timezoneOffset)
date = date.zone(config.timezoneOffset);
}
return date.format('HH:mm_YYYYMMDD');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment