Looking at http://drupal.org/project/usage/uc_signup, I'd like to copy and paste this data into a spreadsheet and sort by date, but I can't do that because there's no year information exposed.
Looking at http://drupalcode.org/project/project.git/blob/HEAD:/usage/includes/page... , this can be changed by doing something like:
variable_set('project_usage_date_short', 'F jS, Y');
for something like "January 1st, 2011"
This would make it easier for me to play with this data.
Thanks!
Comments
Comment #1
ezra-g commentedSpecifically, I'm looking at this line of code
'data' => format_date($week, 'custom', variable_get('project_usage_date_short', PROJECT_USAGE_DATE_SHORT), 0),Comment #3
ezra-g commentedI marked #1242968: Show year in usage statistics next to month and day as a duplicate.
Comment #4
gregglesI did this via
drush @do vset project_usage_date_short 'F jS, Y'but it hasn't changed anything. Maybe those tables are cached?
Comment #5
dwwThose tables are heavily cached in {cache_project_usage}, which in turn lives in memcache on d.o...
This code already exists:
so in theory drush knows how to flush this cache...
Comment #6
gregglesI assumed the cache would get flushed as the report was rebuilt this weekend.
It seems that this affects the header rows in http://drupal.org/project/usage/ but not the leading row on http://drupal.org/project/usage/uc_signup
I think we should probably revert this change and someone will need to work on a patch that adds what Ezra wanted and then we can do any appropriate vsets after that patch has been deployed.
Comment #7
dwwWhoops, yeah. Lame. Seems like a project_usage display bug that that variable isn't consistently used. I don't have time to investigate now, but moving to a more appropriate queue.
Comment #8
ezra-g commentedI filed #1401736: Requesting drupal.org dev site for project usage so that I can help work on this issue.
Comment #9
gregglesFor the record, Bdragon is the one who fixed this by "messing with project_usage_date_long as well as project_usage_date_short, IIRC"
Comment #10
bdragon commentedThere are two variables. I say this is working as designed.
Comment #10.0
bdragon commentedfixing typo