# HG changeset patch # User nanaya # Date 1476564321 -32400 # Node ID 3ad8e6d20e79adcfd68036ffc51b28d58f3e4a4f # Parent ad464c8b699101c3660bcac2ebc3447218fa8a42 Fix atom feed compliances - date format according to xml - no spacing for updated tag diff -r ad464c8b6991 -r 3ad8e6d20e79 app/views/tweets/_tweet.atom.erb --- a/app/views/tweets/_tweet.atom.erb Sun Oct 16 05:39:59 2016 +0900 +++ b/app/views/tweets/_tweet.atom.erb Sun Oct 16 05:45:21 2016 +0900 @@ -1,7 +1,7 @@ <%= atom_id "#{tweet.user.id}/#{tweet.id}" %> - <%= tweet.created_at %> - <%= tweet.created_at %> + <%= tweet.created_at.xmlschema %> + <%= tweet.created_at.xmlschema %> <%= ellipsize tweet.attrs[:full_text] %> diff -r ad464c8b6991 -r 3ad8e6d20e79 app/views/tweets/show.atom.erb --- a/app/views/tweets/show.atom.erb Sun Oct 16 05:39:59 2016 +0900 +++ b/app/views/tweets/show.atom.erb Sun Oct 16 05:45:21 2016 +0900 @@ -8,9 +8,7 @@ <%= "#{@user.name} (#{@user.screen_name})" %> <%= @user.profile_image_url_https %> - - <%= @tweets.first.try(:created_at) || Time.at(0) %> - + <%= (@tweets.first.try(:created_at) || Time.at(0)).xmlschema %> <%= render :partial => "tweet", :collection => @tweets, :cached => true %>