Skip to content

[4.x]: Date Range Conditionals don't include the 'To:' date #13435

@tommysvr

Description

@tommysvr

What happened?

Description

When using Conditional Date Range filters, ‘From:’ is >= but ‘To:’ is < so a check for entries until today doesn’t include entries created today.

Steps to reproduce

  1. Create a new entry
  2. Set a Date Created / Post Date filter with a Range from any date until today's date

Expected behavior

The newly created entry will show in the filtered results.

Actual behavior

The new entry will not show (entries matching the 'To:' date will not show)

screenshot_2023_07_17 _12 11

Craft CMS version

4.4.15

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions