Skip to content

Document hour-based relative date filters for Segments#718

Open
promptless-for-oss wants to merge 1 commit into
mautic:7.1from
Promptless:promptless/segment-relative-hour-filters
Open

Document hour-based relative date filters for Segments#718
promptless-for-oss wants to merge 1 commit into
mautic:7.1from
Promptless:promptless/segment-relative-hour-filters

Conversation

@promptless-for-oss
Copy link
Copy Markdown

Open this suggestion in Promptless to view citations and reasoning process

Adds documentation for hour-based relative date expressions (e.g., -1 hour, +2 hours) in Segment filters, which now correctly compare the full datetime including time when used with datetime fields.

Trigger Events


Tip: Assign suggestions to team members in the Promptless dashboard to claim work 👥

Add documentation for hour-based relative date expressions (e.g., -1 hour,
+2 hours) in Segment filters. These expressions now correctly compare the
full timestamp including time, not just the date portion, when used with
datetime fields like Date last active or Date modified.
@promptless-for-oss promptless-for-oss requested a review from a team as a code owner May 19, 2026 15:34
@promptless-for-oss promptless-for-oss requested review from adiati98 and favour-chibueze and removed request for a team May 19, 2026 15:34

However, you can specify much more here. Mautic recognizes relative formats too - these string aren't translatable:

* ``+1 hour`` / ``-2 hours`` / ``3 hours ago``
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added hour-based relative date format from PR #16135 which fixes DateRelativeInterval.php to include time components (H:i:s) when the filter uses time parts, enabling expressions like -1 hour to properly filter by full datetime.

Source: mautic/mautic#16135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant