The MySQL FROM_UNIXTIME() function does not support negative epoch timestamps, it returns NULL. This SQL function is used in the date filter handler, which means you cannot filter on dates prior to Jan 1st 1970.
The problem can be solved by using the DATE_ADD function, as has been done in the patch.

CommentFileSizeAuthor
filter_dates_prior_1970.patch461 bytesinascon

Comments

INAScon created an issue. See original summary.

Alexandre360’s picture

Confirm the issue, and confirm the fix.

Should be commited ASAP cause it's a serious issue for all people dealing with date prior to 1970.

damienmckenna’s picture

Status: Active » Needs review

Thanks for the patch, we'll try to review it soon.

BTW when you upload a patch it helps to set the status to "needs review", that triggers the testbots and lets others know that there's something review.

damienmckenna’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

I think we need test coverage to make sure this works as expected.