Browse Source

Create time filter as longs when sending to ES

Rashid Khan 12 years ago
parent
commit
34f8c88c28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/services.js

+ 2 - 2
js/services.js

@@ -411,8 +411,8 @@ angular.module('kibana.services', [])
     {
     case 'time':
       return ejs.RangeFilter(filter.field)
-        .from(filter.from)
-        .to(filter.to);
+        .from(filter.from.valueOf())
+        .to(filter.to.valueOf());
     case 'range':
       return ejs.RangeFilter(filter.field)
         .from(filter.from)