Hello,

I see these errors using a few views using date in time ago format, filtered
for 'greater than now', sorted by date too. Significant, that these errors
are printed only on a front page. I've checked all the views, date settings
- haven't seen anything suspicious.

warning: date_format() expects parameter 1 to be DateTime, null given in date/date/date.theme on line 163.
warning: date_format() expects parameter 1 to be DateTime, null given in date/date/date.theme on line 164.
warning: date_format() expects parameter 1 to be DateTime, null given in date/date_api.module on line 625.

... printed ten times - one error for every field appearance?

It shows up after yesterday (or day before) update.

I know, that this error just has its issue, but with other files and code lines.
Feel free to move it if I'm wrong.

Tia:),
Szy.

Comments

szy’s picture

Forgot to mention: all views look correctly, I can't see any consequences
of these errors.

Szy.

szy’s picture

When applied today's dev (February 14, 2009 - 01:04) errors has gone, but sorting
by 'greater than now' has gone with errors, too.

I have edited views with 'now' sorting to get it back - sorting reappeared, errors either.

Szy.

szy’s picture

Component: Date API » Date Popup
Issue tags: +date popup

This is a Date Popup issue. When I change used widget to select and unistall Date Popup,
there is no errors.

Szy.

karens’s picture

Status: Active » Closed (duplicate)

Duplicate of the last issue you reported in #375551: date_format() error in 6.x-2.x-dev (2009-Feb-17)