The function date_format_date() in date_api.module sometimes gets its first parameter $date as string and this is then causing errors later in the functione, e.g. when calling date_format

The attached patch is fixing that.

CommentFileSizeAuthor
date_d7.patch377 bytesjurgenhaas

Comments

dww’s picture

Status: Active » Closed (duplicate)

This is the same bug as #518816: warning: date_format() expects parameter 1 to be DateTime and that it just effects both the 6.x-2.x-dev and 7.x-1.x-dev branches. I re-rolled your patch and posted it there. Please join us in the earliest open issue about this bug. Thanks.