diff --git a/lib/ronn/roff.rb b/lib/ronn/roff.rb index 77473ac..640ad58 100644 --- a/lib/ronn/roff.rb +++ b/lib/ronn/roff.rb @@ -33,7 +33,7 @@ module Ronn comment "generated with Ronn/v#{Ronn.version}" comment "http://github.com/rtomayko/ronn/tree/#{Ronn.revision}" return if name.nil? - macro "TH", %["#{escape(name.upcase)}" "#{section}" "#{date.strftime('%B %Y')}" "#{version}" "#{manual}"] + macro "TH", %["#{escape(name.upcase)}" "#{section}" "#{date.strftime('%Y-%m-%d')}" "#{version}" "#{manual}"] end def remove_extraneous_elements!(doc) diff --git a/lib/ronn/template.rb b/lib/ronn/template.rb index 2c89667..7bf765b 100644 --- a/lib/ronn/template.rb +++ b/lib/ronn/template.rb @@ -67,7 +67,7 @@ module Ronn end def date - @document.date.strftime('%B %Y') + @document.date.strftime('%Y-%m-%d') end def wrap_class_name