Skip to content

Commit

Permalink
Change default time zone of RSS for event calendar (publiclab#2279)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Feb 8, 2018
1 parent 958912c commit 8f69d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tag/rss.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f69d00

Please sign in to comment.