Closed (fixed)
Project:
Scribe SEO Analyzer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2010 at 14:34 UTC
Updated:
19 Jan 2011 at 23:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
stevethewebguy commentedYou can replace line 190:
'#value' => $credits['remaining'] . ' ' . t('evaluations as of ') . date('F j, Y, g:i a', $credits['time']),With:
'#value' => $credits['remaining'] . ' ' . t('evaluations as of ') . date('F j, Y, g:i a', strtotime($credits['time'])),Comment #2
Dustin Currie commenteddate() shouldn't be used in Drupal at all. Use drupal's format_date() instead. It will give you offsets for the site or user timezone and language translation.
http://api.drupal.org/api/drupal/includes--common.inc/function/format_da...
date('F j, Y, g:i a', strtotime($credits['time'])) should be
format_date(strtotime($credits['time']), 'custom', 'F j, Y, g:i a');
or better yet:
format_date(strtotime($credits['time']), 'medium');
Comment #3
leksat commentedComment #4
randallknutson commentedThanks for the patch. It has been applied in rc7.