I'm getting the following warning when running cron:
warning: date_default_timezone_set() expects parameter 1 to be string, object given in apachesolr_biblio.module on line 101.
The reason for this is that on line 60, a call is made to date_default_timezone_get(), which returns an object. On line 101, you are setting the default timezone, which expects a string as the first argument.
The attached patch calls date_default_timezone_name() instead, which returns a string that can be used to set the default timezone.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | apachesolr_biblio.784128.patch | 1003 bytes | j0nathan |
| apachesolr_biblio.module.patch | 588 bytes | ebeyrent |
Comments
Comment #1
ebeyrent commentedComment #2
narnou commentedThis worked for me, thanks !
Comment #3
mvcthis worked for me, thanks!
however i noticed that date_api needs to be added as a dependency in the .info file, to make sure these functions can be called.
Comment #4
j0nathan commentedSubscribing.
Comment #5
j0nathan commentedHere is a patch with #3 and #0.
Comment #6
mvcthanks, jonathan.