Date breaks for dates prior to 1902

jjo - March 27, 2009 - 19:42
Project:CCK Facets
Version:6.x-1.x-dev
Component:Date Facets
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I am developing a site for historical ecologists. They need to populate a cck date field that references the relevant date of the information. That date can be more than 100 years ago. Drupal with faceted search has been a great way to manage this info and search it. However, dates prior to 1902 do not appear in the faceted search. What does appear is the parentheses with the number entries of that date, but no date and/or link.

Expected behavior:

1850 (1)
1890 (5)
1900 (3)
1950 (5)
and so on,

Actual behavior:
(1)
(5)
(3)
1950 (5)
and so on,

I have used the devel module to see if the variable is missing. Not so. The cck variable is there and I can see the string with the year in it. Just no appearing in faceted search.

#1

zuuperman - April 10, 2009 - 07:57

This isn't a problem of faceted, but a problem with date.

http://be.php.net/date

the valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer)

#2

David Lesieur - April 16, 2009 - 16:09
Project:Faceted Search» CCK Facets
Version:6.x-1.0-beta2» 6.x-1.x-dev
Component:General» Date Facets

Does anyone know if the Date module officially supports dates prior to Fri, 13 Dec 1901 20:45:54 GMT? If that's the case, then I guess there would be a way to fix the date facets with the Date API.

 
 

Drupal is a registered trademark of Dries Buytaert.