Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created May 13, 2009 17:42
Show Gist options
  • Save dawehner/111151 to your computer and use it in GitHub Desktop.
Save dawehner/111151 to your computer and use it in GitHub Desktop.
diff --git a/modules/node/views_plugin_row_node_rss.inc b/modules/node/views_plugin_row_node_rss.inc
index b2fc2f2..a9b290f 100644
--- a/modules/node/views_plugin_row_node_rss.inc
+++ b/modules/node/views_plugin_row_node_rss.inc
@@ -98,7 +98,7 @@ class views_plugin_row_node_rss extends views_plugin_row {
$extra = node_invoke_nodeapi($node, 'rss item');
$item->elements = array_merge($extra,
array(
- array('key' => 'pubDate', 'value' => format_date($node->created, 'custom', 'r', variable_get('date_default_timezone', 0))),
+ array('key' => 'pubDate', 'value' => gmdate('d M Y H:i:s O', $node->created - variable_get('date_default_timezone', 0), array(), NULL)),
array(
'key' => 'dc:creator',
'value' => $node->name,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment