# Office-Hours/After-Hours Filtering

**URL:** <https://forum.mautic.org/t/office-hours-after-hours-filtering/22655>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [February 10, 2022, 6:47am UTC](https://forum.mautic.org/t/office-hours-after-hours-filtering/22655 "2022-02-10T06:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewchildsza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrewchildsza/32/33_2.png) [@andrewchildsza](https://forum.mautic.org/u/andrewchildsza)\
**Post date:** [February 10, 2022, 6:47am UTC](https://forum.mautic.org/t/office-hours-after-hours-filtering/22655/1 "2022-02-10T06:47:16Z")

</div>

**Your software**  
My Mautic version is: 4.1.2  
My PHP version is: 7.4  
My Database type and version is: MariaDB 10.3.32

**Your problem**  
My problem is:  
I am looking to filter contacts by the time they were added to a given segment and send them a respective email with differing content based on whether or not the time they were added to the segment is within or outside of office hours (08:00-17:00 in my region of Africa/Johannesburg).

I am not sure how to do this without a plugin such as [ThirdSetMauticTimingBundle](https://github.com/thirdset/ThirdSetMauticTimingBundle), or perhaps regex on a contact’s field.

The issue with this plugin however is that if there is a cron expression on a “send email to contact” event set to send an email with A/B variants, both variants are sent to the contact. Obviously this does not work.

These errors are showing in the log:  
There are no errors for this issue, but I believe it should be an RFE.

Steps I have tried to fix the problem:  
I’ve attempted Regex matching, with some success, but I was hoping for a robust solution to this requirement.
