aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2017-01-13 15:30:02 +0100
committerAlex Legler <alex@a3li.li>2017-01-13 15:30:02 +0100
commit0967557d18629ab6593dd2ef580e4e49c43d8c66 (patch)
tree9a7c4f5234187facaa3f97e35b023059536ab6f7
parentXML format: Use count="" in <revised> and ISO dates (diff)
downloadglsamaker-0967557d18629ab6593dd2ef580e4e49c43d8c66.tar.gz
glsamaker-0967557d18629ab6593dd2ef580e4e49c43d8c66.tar.bz2
glsamaker-0967557d18629ab6593dd2ef580e4e49c43d8c66.zip
XML format: Use ISO8601 for metadata timestamps as well
-rw-r--r--app/views/glsa/_glsa.xml.builder28
1 files changed, 14 insertions, 14 deletions
diff --git a/app/views/glsa/_glsa.xml.builder b/app/views/glsa/_glsa.xml.builder
index 3241e8f..8afb97c 100644
--- a/app/views/glsa/_glsa.xml.builder
+++ b/app/views/glsa/_glsa.xml.builder
@@ -7,11 +7,11 @@ xml.glsa :id => glsa.glsa_id do
xml.product({:type => "ebuild"}, rev.product)
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
end
-
+
xml.access rev.release_access
logger.debug rev.packages_by_atom.inspect
xml.affected do
@@ -27,40 +27,40 @@ xml.glsa :id => glsa.glsa_id do
end
end
end
-
+
xml.background do
xml << xml_format(rev.background || "")
end
-
+
xml.description do
xml << xml_format(rev.description || "")
end
-
+
xml.impact({:type => rev.severity}) do
xml << xml_format(rev.impact || "")
end
-
+
xml.workaround do
xml << xml_format(rev.workaround || "")
end
-
+
xml.resolution do
xml << xml_format(rev.resolution || "")
end
-
+
xml.references do
rev.references.each do |ref|
xml.uri({:link => ref.url}, ref.title)
end
end
-
- xml.metadata({:tag => 'requester', :timestamp => glsa.created_at.rfc2822}, glsa.requester.login)
-
+
+ xml.metadata({:tag => 'requester', :timestamp => glsa.created_at.iso8601}, glsa.requester.login)
+
if glsa.submitter
- xml.metadata({:tag => 'submitter', :timestamp => rev.created_at.rfc2822}, glsa.submitter.login)
+ xml.metadata({:tag => 'submitter', :timestamp => rev.created_at.iso8601}, glsa.submitter.login)
end
-
+
if glsa.bugreadymaker
- xml.metadata({:tag => 'bugReady', :timestamp => Time.now.rfc2822}, glsa.bugreadymaker.login)
+ xml.metadata({:tag => 'bugReady', :timestamp => Time.now.iso8601}, glsa.bugreadymaker.login)
end
end