Missing convert Date to timestamp in fetchDevice

This commit is contained in:
Zaid Abdulla committed 2017-03-22 04:08:08 -07:00
1 parent 9db29bb55d
commit f639435a09
1 file changed
+1 -1
+1 -1
View File
@@ -292,7 +292,7 @@ fetchDevice = (id, timestamp, patterns, callback) ->
{object: [timestamp, 1], writable: [timestamp, 0]}])
# Use current timestamp for registered event attribute timestamps
res.push([['Events', 'Registered'], timestamp,
{object: [timestamp, 0], writable: [timestamp, 0], value: [timestamp, [v, 'xsd:dateTime']]}])
{object: [timestamp, 0], writable: [timestamp, 0], value: [timestamp, [+v, 'xsd:dateTime']]}])
delete device[k]
when '_id'
res.push([['DeviceID'], timestamp,