Closed (fixed)
Project:
Activity Stream
Version:
6.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2009 at 14:38 UTC
Updated:
9 Dec 2009 at 22:20 UTC
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
Comment #1
akalsey commentedThis 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.
Comment #2
akalsey commentedThe 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.
Comment #3
jeancf commentedThanks a lot!