lib/bibtex/entry/citeproc_converter.rb in bibtex-ruby-3.1.3 vs lib/bibtex/entry/citeproc_converter.rb in bibtex-ruby-3.1.4

- old
+ new

@@ -103,9 +103,13 @@ parts = [bibtex[:year].to_s] if bibtex.field?(:month) parts.push BibTeX::Entry::MONTHS.find_index(bibtex[:month].to_s.intern) parts[1] = parts[1] + 1 unless parts[1].nil? + + if bibtex.field?(:day) + parts.push bibtex[:day] + end end hash['issued'] = { 'date-parts' => [parts.compact.map(&:to_i)] } else hash['issued'] = { 'literal' => bibtex[:year].to_s }