Date parsing and toISOString() can't be assumed to be present. Use Moment instead. Issue #323.

This commit is contained in:
Dan Wilson
2013-05-14 16:30:25 +01:00
parent 325eaf8c34
commit 9514c46aa0
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {};
'float': function (e) { return parseFloat(e, 10); },
number: function (e) { return parseFloat(e, 10); },
string : function (e) { return e.toString() },
date : function (e) { return new Date(e).valueOf() },
date : function (e) { return moment(e).valueOf() },
datetime : function (e) { return new Date(e).valueOf() }
};
var keyedFields = {};