We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19be774 commit 3c46585Copy full SHA for 3c46585
1 file changed
thingsdb/model/proptypes.py
@@ -84,8 +84,7 @@ def str_(v):
84
def utf8_(v):
85
if not isinstance(v, str):
86
raise TypeError(f'expecting type `str`, got `{type(v)}`')
87
- timestamp, _offset, _tz_idx = v['\'']
88
- return datetime.fromtimestamp(timestamp)
+ return v
89
90
@staticmethod
91
def datetime_(v):
@@ -98,7 +97,8 @@ def datetime_(v):
98
97
def timeval_(v):
99
if not isinstance(v, dict) or not '"' in dict:
100
raise TypeError(f'expecting type `timeval`, got `{type(v)}`')
101
- return datetime.fromtimestamp(v['\''])
+ timestamp, _offset, _tz_idx = v['"']
+ return datetime.fromtimestamptimestamp)
102
103
104
def bytes_(v):
0 commit comments