I just installed Beta 1 and noticed that I am no longer able to influence the format of the date display in the activitystream block.

With RC2 I this date followed the "medium" date setting which allowed me to set a French date format. The imposed format in Beta2 looks awkward as in French the day always comes before the month (e.g. 22 novembre, not novembre 22).

Indeed in beta1 I found this:

function theme_activitystream_header($action) {
  return '<h3 class="datehead">' . format_date($action->created, 'custom', 'F j, Y') . '</h3>';
}

which replaces this from RC2:

function theme_activitystream_header(&$action) {
  return '<h3 class="datehead">' . format_date($action->created, 'medium') . '</h3>';
}

Would you have an objection to going back to the RC2 implementation?

Thanks,

~/jc

Comments

akalsey’s picture

This is very likely because the 2.x branch was created before the date format was changed in 1.x. I'll see if I can figure out when that change happened and verify there's not a good reason for it being the other way.

akalsey’s picture

Category: feature » bug
Status: Active » Fixed

The change appears to have been inadvertent. It changed in rev 1.2.2.13 -- http://drupalcode.org/viewvc/drupal/contributions/modules/activitystream...

I can find no good reason for this to have been changed. Committed a fix to revert to using the medium date format.

jeancf’s picture

Thanks a lot!

Status: Fixed » Closed (fixed)

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