diff options
| author | Adam Soltys <[email protected]> | 2015-12-03 00:35:20 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-12-03 00:35:20 -0800 |
| commit | b5edbc724cbebb44d54ee508752cb2101a356a3d (patch) | |
| tree | 1f6c6cfb986dd00d1af922b7ddf5cb1b4b8e5e17 /public/js/report.js | |
| parent | 5c61a374297a00dee56c614f88eb37ebb548b949 (diff) | |
| download | coinos-server-b5edbc724cbebb44d54ee508752cb2101a356a3d.tar.gz coinos-server-b5edbc724cbebb44d54ee508752cb2101a356a3d.zip | |
Fix transaction date filter
Diffstat (limited to 'public/js/report.js')
| -rw-r--r-- | public/js/report.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/report.js b/public/js/report.js index cc20c86a..3a29d788 100644 --- a/public/js/report.js +++ b/public/js/report.js @@ -46,7 +46,7 @@ to = moment($('#to_date').val(), "MM/DD/YYYY"); d = moment(e.date); amount = parseFloat(e.exchange) * parseFloat(e.received); - return !isNaN(parseFloat(amount)) && isFinite(amount) && ((from == null) || d.diff(from) >= 0) && ((to == null) || d.diff(to) <= 0); + return !isNaN(parseFloat(amount)) && isFinite(amount) && ((from == null) || d.diff(from, 'days') >= 0) && ((to == null) || d.diff(to, 'days') <= 0); }); return display(transactions); }; |
