lib/gepub/datemeta.rb in gepub-0.6.9.2 vs lib/gepub/datemeta.rb in gepub-0.7.0beta1

- old
+ new

@@ -9,13 +9,13 @@ end super(name, content, parent, attributes, refiners) end def content=(date) - if content.is_a? String - content = Time.parse(content) + if date.is_a? String + date = Time.parse(date) end - @content = content + @content = date end def to_s(locale = nil) # date type don't have alternate scripts. @content.utc.iso8601