After upgrading from Date version 2.7 to 2.8, the server throws the following warning multiple times on every page load:
warning: date_format() expects parameter 1 to be DateTime, boolean given in date.module on line 621.

PHP version is 5.2.6
The problem occurs with the 6.x-2.x-dev version as well.

Unfortunately, the problem only occurs on this specific server (all other sites upgraded fine), so I'm not sure how easy it is to reproduce.

Comments

tangent’s picture

I can confirm this issue. I unwisely updated to the dev branch as of February 9 and then reverted back to 6.x-2.8 (because of other bugs) but I am still seeing this PHP warning. Since I updated to the dev branch first it is possible that update caused this issue with a database change.

darrellduane’s picture

I am also seeing this problem on my site. It doesn't happen on every page, but on a page with a view listing events that have a date in them. I am using PHP 5.3. so I don't think its related to the PHP version. I'm seeing it for line 620 and line 621. I'll try to investigate further and get more details.

At the same time, when I edit the events on this page, I now have to set the time to be 5 hours ahead (I'm in the eastern time zone) whenever I save the events so that the time shows up correctly. I don't know if this bug is related to the above, but the coincidence is that this other date problem also showed up at the same time.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.