Skip to content

Commit

Permalink
Fix timestamp formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujigiri committed Aug 29, 2024
1 parent a10bf50 commit 39e7dda
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/views/genotypes/rss.rss.builder
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
xml.title "openSNP Genotypes"
xml.description "An RSS feed containing the newest genotyping files uploaded by openSNP users"
xml.link root_url + "genotypes"
xml.channel do
xml.title "openSNP Genotypes"
xml.description "An RSS feed containing the newest genotyping files uploaded by openSNP users"
xml.link root_url + "genotypes"

for genotype in @genotypes
xml.item do
xml.title User.find_by_id(genotype.user_id).name + "'s Genotype"
xml.pubDate genotype.created_at.to_s(:rfc822)
xml.link genotype_url(genotype)
xml.guid genotype_url(genotype)
end
end
end
for genotype in @genotypes
xml.item do
xml.title User.find_by_id(genotype.user_id).name + "'s Genotype"
xml.pubDate genotype.created_at.rfc822
xml.link genotype_url(genotype)
xml.guid genotype_url(genotype)
end
end
end
end

0 comments on commit 39e7dda

Please sign in to comment.