Skip to content

Commit 4aeb842

Browse files
committed
Export date filter fix.
1 parent edd4425 commit 4aeb842

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

assets/js/App/Components/Activity/ExportBtn.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
<script>
1212
import {BDropdown, BDropdownItem} from "bootstrap-vue";
13+
import moment from "moment";
1314
1415
export default {
1516
name: 'app-export-btn',
@@ -26,8 +27,8 @@ export default {
2627
computed: {
2728
exportUrl() {
2829
const params = {
29-
dateFrom: this.startDate.toISOString(),
30-
dateTo: this.endDate.toISOString()
30+
dateFrom: moment(this.startDate).startOf('day').utc().toISOString(),
31+
dateTo: moment(this.endDate).endOf('day').utc().toISOString()
3132
};
3233
3334
if (this.search.length) {

public/build/activity.aec69e09.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)