First, thanks for this great plugin.
I'm using persistencejs (the latest grabbed by bower) for one of my angularjs service.
Every thing seems ok until I need to grab some records between the start and end of a given day.
This is my code so far:
...
// startOfDay and endOfDay are unix timestamp
startOfDay = parseInt('1395176400');
endOfDay = parseInt('1395262799');
var allSales = Sale.all().filter("created_at", '>', startOfDay)
.and("created_at", '<', endOfDay) // It gives error here : TypeError: Object created_at has no method 'toUniqueString' persistence.js:1326:64)
allSales.list(function (results) {
// compute results
}
...
When I remove the 'and' filter, I get some results but not the wanted ones.
Any help would be great.
Thanks. rvkone