summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2009-06-02 20:14:43 (GMT)
committer Earl Miles2009-06-02 20:14:43 (GMT)
commit181aa16cd8f8b7be098a7a1143f327e013db6d1c (patch)
tree964e184026aa2a36fcea2e5ca0d3ed588e833748
parent29745c9313d49adde03c03721509a0b47fbcd2a9 (diff)
#461842 by dereine: Use gmtime() instead of format_date() to prevent localization of dates in RSS feeds.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--modules/node/views_plugin_row_node_rss.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 06bfbad..5e5bff1 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -17,6 +17,7 @@ Views 2.x
o #468336 by psynaptic: Fix broken hook_views_admin_links_alter
o #422868 by mattman: Breadcrumbs not properly substuting % replacements.
o #440676 by dereine and Razorraser: View import form crashed on empty view input.
+ o #461842 by dereine: Use gmtime() instead of format_date() to prevent localization of dates in RSS feeds.
Other changes:
o #298616: Add argument for node updated time similar to node created time.
diff --git a/modules/node/views_plugin_row_node_rss.inc b/modules/node/views_plugin_row_node_rss.inc
index a80ae72..75fa252 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('r', $node->created)),
array(
'key' => 'dc:creator',
'value' => $node->name,