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
Comment #1
biscuit.tech commentedI 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
Comment #2
biscuit.tech commentedUpgrading to -dev for April 22/23 Calendar and Date fixed this.
Thanks!
Comment #3
karens commentedMarking fixed.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
drupalfan2 commentedThis 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?
Comment #6
drupalfan2 commentedthe 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!!!
Comment #7
arlinsandbulte commentedVersion 5.2 is critical bugfix only, no other support, no new features.
Comment #8
arlinsandbulte commented