Commit 4ed65891 by Torkel Ödegaard

Merge pull request #39 from jeviolle/master

fixed missing module for 'moment' and jslint missing semi colon
parents f52450ae 49e131ce
...@@ -3,9 +3,10 @@ define([ ...@@ -3,9 +3,10 @@ define([
'underscore', 'underscore',
'jquery', 'jquery',
'config', 'config',
'kbn' 'kbn',
'moment'
], ],
function (angular, _, $, config, kbn) { function (angular, _, $, config, kbn, moment) {
'use strict'; 'use strict';
var module = angular.module('kibana.services'); var module = angular.module('kibana.services');
...@@ -55,7 +56,7 @@ function (angular, _, $, config, kbn) { ...@@ -55,7 +56,7 @@ function (angular, _, $, config, kbn) {
date = moment.utc(date).local(); date = moment.utc(date).local();
if (config.timezoneOffset) { if (config.timezoneOffset) {
date = date.zone(config.timezoneOffset) date = date.zone(config.timezoneOffset);
} }
return date.format('HH:mm_YYYYMMDD'); 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