Skip to content
Snippets Groups Projects
Commit dde5b579 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #553 from metabase/fix_int_timestamp_filter

Don't parse timestamp values into an int even if the base_type is an int
parents 098012ff f58bb662
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment