hi,
I use of Datex and it works

Datex change submitted in `datex_preprocess_comment` so `timeago_preprocess_comment` can not modify that. I changed `datex_preprocess_comment` as below to works with timeago:

/**
* Implements hook_preprocess_comment().
*
* Localizes 'published on' date in non-patching mode.
*/
function datex_preprocess_comment(&$variables) {
if(module_exists('timeago')):
return;
endif;
$calendar = $variables['elements']['#comment']->created;
$cfg = _datex_cfg('comment_fmt');
if (!$calendar = _datex_factory($calendar, $cfg, DATEX_NONPATCHING_MODE)) {
return;
}

// Timestamp set while calling factory.
$variables['changed'] = $calendar->format();

$calendar->setTimestamp($variables['elements']['#comment']->created);
$variables['created'] = $calendar->format();

$variables['submitted'] = t('Submitted by !username on !datetime', array('!username' => $variables['author'], '!datetime' => $variables['created']));
}

Comments

hkoosha’s picture

Status: Active » Postponed

Dear friend,

Thanks for your help, If you kindly send it as a patch I will gladly apply it to our dev branch on git. You can read more about patches here: https://www.drupal.org/node/707484

Thanks again.

e.arabiyan’s picture

Issue summary: View changes
hkoosha’s picture

Status: Postponed » Closed (won't fix)

Well, I'm closing this for now, But I'll be happy to have a patch for that :)