From 57f0d6f97844b9ba070f7a048fc9a942c1ecf0c8 Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Thu, 8 Feb 2018 12:13:24 -0500 Subject: [PATCH] Change default time zone of RSS for event calendar (#2279) --- app/views/tag/rss.rss.builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tag/rss.rss.builder b/app/views/tag/rss.rss.builder index 200fff25fc..a99d98cb16 100644 --- a/app/views/tag/rss.rss.builder +++ b/app/views/tag/rss.rss.builder @@ -16,7 +16,7 @@ xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do xml.author author if node.power_tag('date') != '' begin - xml.pubDate DateTime.strptime(node.power_tag('date'), "%m-%d-%Y").rfc822 + xml.pubDate DateTime.strptime(node.power_tag('date'), "%m-%d-%Y").in_time_zone("America/New_York").rfc822 rescue xml.pubDate node.power_tag('date') end