I have a view in which I filter nodes with a date (unix_timestamp) field (e.g. date_of_birth). The filter shows all nodes with a date relative date older than 18 years. That works fine until it doesn't show nodes with negative timestamps. The _oldest_ are 01.01.1970.

I expect to see even nodes with dates before 1.1.1970 which are negative unix-timestamps.

I assume this is a date_views bug because of unexpected behaviour for the sitebuilder and I hope I have created that issue at the right place. Or should that be a views issue?

Comments

marco.b created an issue. See original summary.

marco.b’s picture

Issue summary: View changes
andrew dolgov’s picture

patch make mysql able handle negative timestamp values

andrew dolgov’s picture

Component: Code » Date API
Status: Active » Needs review
damienmckenna’s picture

Version: 7.x-2.10 » 7.x-2.x-dev
chris matthews’s picture

The patch in #3 still applies cleanly to the latest 7.x-2.x-dev and seems like a reasonable fix to me, but it would be good for someone else to review and test before changing the status to RTBC.

Checking patch date_api/date_api_sql.inc...
Hunk #1 succeeded at 210 (offset 7 lines).
Applied patch date_api/date_api_sql.inc cleanly.
mvc’s picture