From f639435a0902126ee2a5dc9372e95b3b8aeb3826 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Wed, 22 Mar 2017 04:08:08 -0700 Subject: [PATCH] Missing convert Date to timestamp in fetchDevice --- lib/db.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.coffee b/lib/db.coffee index 0b76f5d..b008426 100644 --- a/lib/db.coffee +++ b/lib/db.coffee @@ -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,