Datetime conversion should also support cases where the input is a float timestamp represented as a string

This commit is contained in:
Fabio Manganiello 2020-01-19 15:39:57 +01:00
parent 42eabcf661
commit db862d1d96

View file

@ -38,8 +38,10 @@ class TravisciBackend(Backend):
if not d:
return
if isinstance(d, int) or isinstance(d, float):
return d
try:
return float(d)
except ValueError:
pass
if isinstance(d, str):
if d.endswith('Z'):