aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2017-01-13 15:21:49 +0100
committerAlex Legler <alex@a3li.li>2017-01-13 15:21:49 +0100
commite3b81e36e6577ee550a046f573002950bc26bea5 (patch)
tree79f86e14d65cbe4394a3422b30a8d1b0a3b953e9
parentJSONify /cve/info/ (diff)
downloadglsamaker-e3b81e36e6577ee550a046f573002950bc26bea5.tar.gz
glsamaker-e3b81e36e6577ee550a046f573002950bc26bea5.tar.bz2
glsamaker-e3b81e36e6577ee550a046f573002950bc26bea5.zip
XML format: Use count="" in <revised> and ISO dates
As submitted by b-man and mgorny
-rw-r--r--app/views/glsa/_glsa.xml.builder4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/glsa/_glsa.xml.builder b/app/views/glsa/_glsa.xml.builder
index 31d75fa..3241e8f 100644
--- a/app/views/glsa/_glsa.xml.builder
+++ b/app/views/glsa/_glsa.xml.builder
@@ -5,8 +5,8 @@ xml.glsa :id => glsa.glsa_id do
xml.title rev.title
xml.synopsis rev.synopsis
xml.product({:type => "ebuild"}, rev.product)
- xml.announced glsa.release_date.strftime '%B %d, %Y'
- xml.revised glsa.revised_date.strftime('%B %d, %Y') + ": #{rev.release_revision || 'draft'}"
+ xml.announced glsa.release_date.strftime '%Y-%m-%d'
+ xml.revised({:count => "#{rev.release_revision || 'draft'}"}, glsa.revised_date.strftime('%Y-%m-%d'))
rev.bugs.each do |bug|
xml.bug bug.bug_id