I was having problems with the date format. It was showing the created_at time as timezone +00:00.
Additionally it was not posible to translate -ago- or -just now- when using Twitter Style Date.
I changed the following lines in the socialfeed.block.inc file.

Line 363 from
$v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : '');
to
$v= $diff->$k . ' ' . t($v . ($diff->$k > 1 ? 's' : ''));

Line: 373 from:
return $string ? implode(', ', $string) . ' ago' : 'just now';
To:
return $string ? t("@time ago", array('@time' => implode(', ', $string))) : t('just now');
So it would be possible to translate it.

And added a new line after line 307 so the date is according to user time zone :
$formatted_twitter_date = new DateTime($twitter_value['created_at']); (current line)
$formatted_twitter_date->setTimezone(new DateTimeZone(drupal_get_user_timezone())); (new line)

Comments

jpablusco created an issue. See original summary.

hemangi.gokhale’s picture

Version: 7.x-2.8 » 7.x-2.x-dev
Status: Active » Fixed

Thanks jpablusco, for bringing up the issue. I've fixed the same. Kindly try updating the module with latest version.

Status: Fixed » Closed (fixed)

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