From f58bb662e202534835a318af0037e9aac598339f Mon Sep 17 00:00:00 2001
From: Tom Robinson <tlrobinson@gmail.com>
Date: Tue, 7 Jul 2015 17:10:41 -0700
Subject: [PATCH] Don't parse timestamp values into an int even if the
 base_type is an int

---
 .../frontend_client/app/query_builder/filter_widget.react.js  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/resources/frontend_client/app/query_builder/filter_widget.react.js b/resources/frontend_client/app/query_builder/filter_widget.react.js
index 78a666cccb8..098dd3b356a 100644
--- a/resources/frontend_client/app/query_builder/filter_widget.react.js
+++ b/resources/frontend_client/app/query_builder/filter_widget.react.js
@@ -144,7 +144,9 @@ export default React.createClass({
 
         if (value && value.length > 0) {
             // value casting.  we need the value in the filter to be of the proper type
-            if (this.state.fieldDef.base_type === "IntegerField" ||
+            if (this.state.fieldDef.special_type === "timestamp_milliseconds" ||
+                this.state.fieldDef.special_type === "timestamp_seconds") {
+            } else if (this.state.fieldDef.base_type === "IntegerField" ||
                     this.state.fieldDef.base_type === "SmallIntegerField" ||
                     this.state.fieldDef.base_type === "BigIntegerField") {
                 value = parseInt(value);
-- 
GitLab