[drupal-devel] [bug] Non locale date information in theme

Poetro drupal-devel at drupal.org
Fri May 27 11:45:51 UTC 2005


Issue status update for http://drupal.org/node/23734

 Project:      Drupal
 Version:      4.6.0
 Component:    aggregator.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Poetro
 Reported by:  Poetro
 Updated by:   Poetro
 Status:       patch

The aggregator modul does not display dates in locale format. To solve
this, you have to modify 2 rows in the aggregator modul (1.233.2.4):
line 1103:
-    $output .= '<h3>'. date('F j, Y', $item->timestamp) ."</h3>\n";
+    $output .= '<h3>'. format_date($item->timestamp, 'custom', 'F j,
Y') ."</h3>\n";
line 1107:
-  $output .= ' <div class="date">'. date('H:i', $item->timestamp)
."</div>\n";
+  $output .= ' <div class="date">'. format_date($item->timestamp,
'custom', 'H:i') ."</div>\n";




Poetro




More information about the drupal-devel mailing list