Topic: [Bug/Confirmed] Invalid dates in date ranges produces undefined results.

Posted under Site Bug Reports & Feature Requests

Bug overview description.
@savageorange: Bug:Invalid day numbers in date: metatag search are not properly clipped.
Expected behaviour:Searching with a date that is past the end of the month -- eg 2016-02-31 -- should be treated the same as searching with a date that is exactly the end of the month.
Actual behaviour: Some weird date newer than all posts is returned .. meaning that with > operator, no posts are returned; with < operator, all posts (having the relevant tags) are returned.
Example: Compare feral date:>2016-02-30 and feral date:>2016-02-28

What part(s) of the site page(s) are affected?
Search

What is the expected behavior?
Date range is clipped to end of moth.

What actual behavior is given instead?
Undefined behavior.

Time of incident. (If applicable)
N/A

Can you reproduce the bug every time?
Yes.

What steps did you take to replicated this bug?
Search for a date that contains a day beyond the valid range for the month.

Errors or other messages returned. (If any)
N/A

  • 1