Skip to content

Commit

Permalink
Export date filter fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikeev committed Jan 8, 2022
1 parent edd4425 commit 4aeb842
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions assets/js/App/Components/Activity/ExportBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<script>
import {BDropdown, BDropdownItem} from "bootstrap-vue";
import moment from "moment";
export default {
name: 'app-export-btn',
Expand All @@ -26,8 +27,8 @@ export default {
computed: {
exportUrl() {
const params = {
dateFrom: this.startDate.toISOString(),
dateTo: this.endDate.toISOString()
dateFrom: moment(this.startDate).startOf('day').utc().toISOString(),
dateTo: moment(this.endDate).endOf('day').utc().toISOString()
};
if (this.search.length) {
Expand Down
1 change: 0 additions & 1 deletion public/build/activity.aec69e09.js

This file was deleted.

Loading

0 comments on commit 4aeb842

Please sign in to comment.