I have the following parsing Error on my site, but only if I try to display the block view. It´s the same on both sites, one is upgraded (5.6 -> 5.7) and the other a clean intallation. (5.7)
But the block is displaying ok.

warning: date_create() [function.date-create]: Failed to parse time string (2008-04-05 00:00:00|2008-04-06 00:00:00) at position 19 (|): Unexpected character in /Applications/MAMP/htdocs/drupal/sites/all/modules/date/date_api.module on line 545."

And with a different format:

warning: date_create() [function.date-create]: Failed to parse time string (2008-03-25|2008-03-26) at position 10 (|): Unexpected character in /Applications/MAMP/htdocs/drupal5_test/sites/all/modules/date/date_api.module on line 545.

PHP 5.2
mysql 5

Comments

biscuit.tech’s picture

I can confirm this.

I get the following error:
warning: date_create() [function.date-create]: Failed to parse time string (2008-04-19 18:15:00|2008-04-19 18:15:00) at position 19 (|): Unexpected character in /myserverpath/d/modules/date/date_api.module on line 545.

And block displays correctly.

PHP: 5.2.3
Drupal: 5.7
Date API: 5.x-2.0-rc

biscuit.tech’s picture

Upgrading to -dev for April 22/23 Calendar and Date fixed this.

Thanks!

karens’s picture

Status: Active » Fixed

Marking fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

drupalfan2’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Needs work

This problem still exists in date module!

warning: date_create() [function.date-create]: Failed to parse time string (1186-61-09 00:00:00) at position 6 (1): Unexpected character in

Date field shows -24726956400 but in real this value is: 1186610930

Used date format: "U"

Why can't date modul read the timestamp "1186610930" correctly?

drupalfan2’s picture

the date function seems to believe, that 1186610930 is a date in the form YYYY-d-m h:m:i, but it is not! It is a unix timestamp!!!

But this timestamp value 1186610930 could be a date 1186-61-09 00:00:00 (year 1186,...).
THIS IS A BUG!!!

arlinsandbulte’s picture

Version 5.2 is critical bugfix only, no other support, no new features.

arlinsandbulte’s picture

Status: Needs work » Closed (won't fix)