Skip to content

Commit

Permalink
fix #6432 by not attempting to recognize dates
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdraves committed Feb 1, 2018
1 parent 157835f commit bf27b96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion beakerx/beakerx/tabledisplay/tabledisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def convert_type(object_type, value):
return "int64"
if isinstance(value, int):
return "integer"
if "datetime" in str(object_type) or is_date(value):
if "datetime" in str(object_type):
return "time"
if isinstance(value, str):
return "string"
Expand Down
7 changes: 0 additions & 7 deletions beakerx/beakerx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@

current_milli_time = lambda: int(round(time.time() * 1000))

def is_date(string):
try:
parser.parse(string)
return True
except Exception:
return False


def unix_time(dt):
if isinstance(dt, Timestamp):
Expand Down

0 comments on commit bf27b96

Please sign in to comment.