# Custom Objects: querying on relative days, Mautic thinks I mean weeks!

**URL:** <https://forum.mautic.org/t/custom-objects-querying-on-relative-days-mautic-thinks-i-mean-weeks/26435>\
**Category:** Product Support\
**Created:** [December 19, 2022, 10:33am UTC](https://forum.mautic.org/t/custom-objects-querying-on-relative-days-mautic-thinks-i-mean-weeks/26435 "2022-12-19T10:33:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlbs](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jlbs](https://forum.mautic.org/u/jlbs)\
**Post date:** [December 19, 2022, 10:33am UTC](https://forum.mautic.org/t/custom-objects-querying-on-relative-days-mautic-thinks-i-mean-weeks/26435/1 "2022-12-19T10:33:55Z")

</div>

**Your software**  
My Mautic version is: 4.4.4  
My PHP version is: 7.4.33  
My Database type and version is: 10.5.18-MariaDB-1:10.5.18+maria~ubu2004

**Your problem**  
My problem is:  
I’m using the Custom Objects plugin and I’ve created a custom object (“Attendance”) with a date field. I want to be able to segment contacts with an attendance date yesterday, so I’ve created a segment with this filter:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b5bbc4558afa877c659148800d7a19bdc2405274.png)

This doesn’t seem to be working as expected. Bizarrely, it only returns contacts with a date from 1 week ago!

Is there anything I can do to fix this?

These errors are showing in the log: N/A

Steps I have tried to fix the problem: N/A

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 21, 2022, 6:23am UTC](https://forum.mautic.org/t/custom-objects-querying-on-relative-days-mautic-thinks-i-mean-weeks/26435/2 "2022-12-21T06:23:32Z")

</div>

Hi, yeah it works.  
But only for 1 second. Then the date is not equal again.
