I installed Public Booking and Bookings API, created a Bookings Resource content item and when I go to:
/admin/content/publicbookings/booking/add

I get these errors

warning: date_format() expects parameter 1 to be DateTime, string given in /Users/danny/mysite/sites/all/modules/date/date_api.module on line 678.

warning: date_format() expects parameter 1 to be DateTime, string given in  /Users/danny/mysite/sites/all/modules/date/date_api.module on line 710.

The error is repeated several times down the page.

Note that I have Date API already installed and use it on my site for many different things such as events that all work fine.

Comments

Anonymous’s picture

Thanks, I'll look into it. Which versions of PHP and Date are you using?

danny englander’s picture

Hi tirsales:

PHP is 5.2.11 & Date is 6.x-2.x-dev (2010-May-01). I just found a possible related issue and I am attempting to implement a patch from them over at: http://drupal.org/node/772180 , not sure if this is related. However, I have not gotten this error anywhere else on my site that has date fields so I am skeptical that it's my exact issue.

thanks, Danny

Anonymous’s picture

Thanks. I'd might well be an error in my implementation - I still have to consilidate the time-formats used.. For a variety of reasons I'm using both UNIXTIME and DATETIME and it might be a missed conversion ..

danny englander’s picture

Ok the patch at http://drupal.org/node/772180#comment-2904768 worked in fixing this error (and using the command patch -p0 < date-772180-element-description-1.patch) so I can now proceed beyond that but I am getting a new error when I save on "Add booking" at /admin/content/publicbookings/booking/add

I will open a new ticket describing the new error.

thank you

Anonymous’s picture

Status: Active » Fixed

Setting this to fixed - thanks for the info!

dww’s picture

Project: Public Bookings » Date
Version: 6.x-3.x-dev » 6.x-2.x-dev
Component: Code » Date API
Status: Fixed » Closed (duplicate)
ikeigenwijs’s picture

subscribe worked for me