# Admin Report - User-to-User Messages - date range not respected

**URL:** https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915
**Category:** Bug
**Created:** [2016年四月21日 02:04 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915 "2016-04-21T02:04:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2016年四月21日 02:04 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915/1 "2016-04-21T02:04:02Z")

</div>

For the following URL `/admin/reports/user_to_user_private_messages?category-id=all&end-date=2016-04-21&start-date=2016-04-10`

Note start date of `2016-04-10`.

A graph starting at `2016-03-22` is created:

 ![](https://global.discourse-cdn.com/meta/original/3X/d/1/d10517c77f4a65f1826a2784f285e26a55658b92.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年四月21日 02:41 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915/2 "2016-04-21T02:41:08Z")

</div>

Something is wacky with report dates, @sam mentioned there is a result total amount limiter, but it is still wacky.

@techapj can you add this to your list?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年四月21日 08:27 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915/3 "2016-04-21T08:27:47Z")

</div>

This was happening because _Private Message_ admin reports do not support date/category filters as of now. It defaults to previous _30 days_.

I removed the filter controls on PM reports to avoid confusion.

* * *

[https://github.com/discourse/discourse/commit/89a7a90208697da9240c52a208e8f9a912128522](https://github.com/discourse/discourse/commit/89a7a90208697da9240c52a208e8f9a912128522)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2016年四月21日 08:43 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915/4 "2016-04-21T08:43:49Z")

</div>

> [@techAPJ](#):
>
> _Private Message_ admin reports do not support date/category filters

Weird, why is it different than the others?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年四月21日 08:53 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915/5 "2016-04-21T08:53:51Z")

</div>

Definitely fix the filtering as opposed to removing the boxes, makes no sense not to support date ranges here.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年四月21日 10:46 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915/6 "2016-04-21T10:46:10Z")

</div>

Okay, added support for date range filters in PM reports via:

[https://github.com/discourse/discourse/commit/ee7ef46b9e29fb01e74f0828163a116818253d4b](https://github.com/discourse/discourse/commit/ee7ef46b9e29fb01e74f0828163a116818253d4b)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年四月21日 10:46 UTC](https://meta.discourse.org/t/admin-report-user-to-user-messages-date-range-not-respected/42915/7 "2016-04-21T10:46:17Z")

</div>


