After installing this module, and trying to play with it by creating a new node I am getting this error message on the node/add page:

warning: date() expects parameter 2 to be long, string given in sites/all/modules/scribeseo/scribeseo.module on line 190.

Comments

stevethewebguy’s picture

You can replace line 190:
'#value' => $credits['remaining'] . ' ' . t('evaluations as of ') . date('F j, Y, g:i a', $credits['time']),

With:
'#value' => $credits['remaining'] . ' ' . t('evaluations as of ') . date('F j, Y, g:i a', strtotime($credits['time'])),

Dustin Currie’s picture

date() shouldn't be used in Drupal at all. Use drupal's format_date() instead. It will give you offsets for the site or user timezone and language translation.

http://api.drupal.org/api/drupal/includes--common.inc/function/format_da...

date('F j, Y, g:i a', strtotime($credits['time'])) should be

format_date(strtotime($credits['time']), 'custom', 'F j, Y, g:i a');

or better yet:

format_date(strtotime($credits['time']), 'medium');

leksat’s picture

randallknutson’s picture

Status: Active » Fixed

Thanks for the patch. It has been applied in rc7.

Status: Fixed » Closed (fixed)

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