# Admin "likes" report ignores selected date range

**URL:** https://meta.discourse.org/t/admin-likes-report-ignores-selected-date-range/34613
**Category:** Bug
**Created:** [16.Октябрь.2015 17:32:10 UTC](https://meta.discourse.org/t/admin-likes-report-ignores-selected-date-range/34613 "2015-10-16T17:32:10Z")
**Posts on this page:** 5
**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: [16.Октябрь.2015 17:32:10 UTC](https://meta.discourse.org/t/admin-likes-report-ignores-selected-date-range/34613/1 "2015-10-16T17:32:10Z")

</div>

When requesting a likes report from `/admin/reports/likes` for the date range “`01/01/2015`” to “`31/01/2015`”…

The actual results returned are for the “previous 30 days” including today, specifically `2015-09-16` to `2015-10-16`.

The JSON response includes:  
`"start_date":"2015-01-01T00:00:00.000+00:00","end_date":"2015-01-31T00:00:00.000+00:00"`

This may be the case for other admin reports, but only “likes” has been tested.

---

<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: [16.Октябрь.2015 19:45:39 UTC](https://meta.discourse.org/t/admin-likes-report-ignores-selected-date-range/34613/2 "2015-10-16T19:45:39Z")

</div>

Seems like a legit bug, @neil can you add this to your list for next week?

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [16.Октябрь.2015 20:25:49 UTC](https://meta.discourse.org/t/admin-likes-report-ignores-selected-date-range/34613/3 "2015-10-16T20:25:49Z")

</div>

It’s on my list for next week!

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [19.Октябрь.2015 20:55:06 UTC](https://meta.discourse.org/t/admin-likes-report-ignores-selected-date-range/34613/4 "2015-10-19T20:55:06Z")

</div>

I fixed this today. The date range was being ignored for some reports (likes, flags, bookmarks).

---

<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: [19.Октябрь.2015 20:56:54 UTC](https://meta.discourse.org/t/admin-likes-report-ignores-selected-date-range/34613/5 "2015-10-19T20:56:54Z")

</div>


