diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-27 18:13:04 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-27 18:13:04 +0000 |
commit | aa512439c89c852146923a3b0ce8f72b28becbca (patch) | |
tree | 33c86bc3f2600d9801790d856eb5925ba7d29ac6 /modules | |
parent | 9f99a903b83efbb6484e39408061a0a668ba7700 (diff) | |
download | brdo-aa512439c89c852146923a3b0ce8f72b28becbca.tar.gz brdo-aa512439c89c852146923a3b0ce8f72b28becbca.tar.bz2 |
#212864 suggestion by pp, patch by gdevlugt: use format_date() for RSS item dates instead of date() to honor site time zone settings
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 4562b1e93..2cbd0bdef 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1664,7 +1664,7 @@ function node_feed($nids = FALSE, $channel = array()) { // Allow modules to add additional item fields and/or modify $item $extra = node_invoke_nodeapi($item, 'rss item'); - $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid .' at '. $base_url, 'attributes' => array('isPermaLink' => 'false')))); + $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => format_date($item->created, 'custom', 'r')), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid .' at '. $base_url, 'attributes' => array('isPermaLink' => 'false')))); foreach ($extra as $element) { if (isset($element['namespace'])) { $namespaces = array_merge($namespaces, $element['namespace']); |