It looks like date_views.inc didn't get updated to match the changes in date.inc
line 792 throws the error.

Comments

KarenS’s picture

Oop, you're right. I knew I'd forget something :-) I'll get it into the next commit.

KarenS’s picture

Status: Active » Fixed

Hmm, no it should be OK. I have been having some problems getting my files to update correctly (I do a cvs update but sometimes I still have the previous version) so maybe something like this has happened. Anyway, I have also committed some other changes so try picking up all the very latest commits. I am pretty sure there is no problem if you have all the latest files, but reopen if you do.

jarea’s picture

I just uploaded the latest version of date-4.7.0 (last revised 10/1/06) and am having the same problem. It happens whenever I try to save a CCK content type configuration regardless of whether the content type has a date field in it or not.

jarea’s picture

 *  a function to figure out if any time data is to be collected or displayed
 */
function date_has_time($granularity) {
  return sizeof(array_intersect($granularity, array('H', 'N', 'S'))) > 0 ? TRUE : FALSE;
}

Don't know if this is relevant but I do have some date fields in CCK content types that do not contain time values (only date information).

SkiBum’s picture

Status: Fixed » Active

Yeah, there hasn't been a 4.7.0 release since i posted the issue. Might have been fixed in the cvs release, but I'm not running cvs ;)

KarenS’s picture

Version: 7.x-1.x-dev » 4.7.x-1.x-dev

This issue was originally reported for cvs and cvs is fixed. If you're having a problem in 4.7 that is a different issue, so I'll change the version. I'll take a look at that later today.

KarenS’s picture

Status: Active » Fixed

Now fixed in both versions.

jarea’s picture

Fixes it for me in 4.7 - Thanks Karen

Anonymous’s picture

Status: Fixed » Closed (fixed)