From afd8cd354fbd8e4e34d1d7d252a47fff37f61d13 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 25 Jan 2016 14:39:15 +0400 Subject: [PATCH] remove raygun warning about mtime --- plugins/c9.fs/fs.cache.xml.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index da06cc24..de85131e 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -574,7 +574,10 @@ define(function(require, exports, module) { node.contenttype = stat.mime || util.getContentType(name); node.status = "loaded"; } - + if (typeof stat.mtime !== "number" && stat.mtime) { + // TODO fix localfs to not send date objects here + stat.mtime = +stat.mtime; + } if (stat.size != undefined) node.size = stat.size; if (stat.mtime != undefined) @@ -594,14 +597,6 @@ define(function(require, exports, module) { node.children = null; - if (typeof node.mtime !== "number" && node.mtime) { - // why Date ends up here? - reportError(new Error("Date in fs cache"), { - stat: stat, - mtime: node.mtime, - path: node.path - }); - } if (!updating) { if (!modified.length) modified.push(parent);