Showing dates in facets for dates before 1-1-1970 is wrong.
From PHP version 5.1.0 strtotime can return negative value for dates before 1-1-1970.
Mihajlo
Kontrola
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | strtotime-640706-6.patch | 709 bytes | pwolanin |
| formatisobygap.patch | 711 bytes | mihha |
Comments
Comment #1
robertdouglass commentedDoes this patch make the pre 1970 dates display correctly? Or just prevent them from displaying wrongly?
Comment #2
mihha commentedIt displays them correctly - they are showing like any other dates now.
Comment #3
robertdouglass commentedGaaah. Drupal doesn't make it easy to test this. You can't, for example, simply change the authored field on a node to something prior to 1970, it won't validate.
Comment #4
mihha commentedWell.. I am using it for some CCK field. That's how I noticed this bug.
And here what changed in PHP so this is now supported:
Changelog for date function for v5.1.0
Changlelog for strtotime function for v5.1.0
Comment #5
pwolanin commentedBased on the above changelog, looks like this patch is wrong - the condition should be :
Comment #6
pwolanin commentedlike this
Comment #7
jpmckinney commentedhttp://drupal.org/cvs?commit=359682
Comment #8
jpmckinney commentedComment #9
jpmckinney commentedFixed in 6.1 and 5-2.
http://drupal.org/cvs?commit=360674
http://drupal.org/cvs?commit=360672