2
votes

I installed date module in drupal 7. However when I tried using contextual filters as date. I always got this error.

Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in format_date() (line 1909 of httpdocs/includes/common.inc). Warning: date_format() expects parameter 1 to be DateTime, boolean given in format_date() (line 1919 of includes/common.inc).

Does anybody encountered the same thing?

Please help.

Thanks!

1

1 Answers

0
votes

I am experiencing the same issue now. After commenting out format_date() function calls, the warning disappeared. I'll post back when I know more..

EDIT: Found the source to this issue - the warning gets fired when you supply invalid argument to the format_date() function (I suggest you to check your variable values, mine was empty).