Download & Extend

Call of date_format requires param 1 to be DateTime, String given

Project:Date
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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.

AttachmentSizeStatusTest resultOperations
date_d7.patch377 bytesIgnored: Check issue status.NoneNone

Comments

#1

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.