Office-Hours/After-Hours Filtering

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, 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.