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
Comment #1
Anonymous (not verified) commentedThanks, I'll look into it. Which versions of PHP and Date are you using?
Comment #2
danny englanderHi 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
Comment #3
Anonymous (not verified) commentedThanks. 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 ..
Comment #4
danny englanderOk 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/addI will open a new ticket describing the new error.
thank you
Comment #5
Anonymous (not verified) commentedSetting this to fixed - thanks for the info!
Comment #6
dww#518816: warning: date_format() expects parameter 1 to be DateTime
Comment #7
ikeigenwijs commentedsubscribe worked for me