forked from platypush/platypush
Datetime conversion should also support cases where the input is a float timestamp represented as a string
This commit is contained in:
parent
42eabcf661
commit
db862d1d96
1 changed files with 4 additions and 2 deletions
|
@ -38,8 +38,10 @@ class TravisciBackend(Backend):
|
||||||
if not d:
|
if not d:
|
||||||
return
|
return
|
||||||
|
|
||||||
if isinstance(d, int) or isinstance(d, float):
|
try:
|
||||||
return d
|
return float(d)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
if isinstance(d, str):
|
if isinstance(d, str):
|
||||||
if d.endswith('Z'):
|
if d.endswith('Z'):
|
||||||
|
|
Loading…
Reference in a new issue