lib/bolognese/utils.rb in bolognese-0.10.13 vs lib/bolognese/utils.rb in bolognese-0.10.14

- old
+ new

@@ -638,10 +638,10 @@ "https://raw.githubusercontent.com/#{github_hash[:owner]}/#{github_hash[:repo]}/master/codemeta.json" end end def get_date_parts(iso8601_time) - return { "date_parts" => [[]] } if iso8601_time.nil? + return { 'date-parts' => [[]] } if iso8601_time.nil? year = iso8601_time[0..3].to_i month = iso8601_time[5..6].to_i day = iso8601_time[8..9].to_i { 'date-parts' => [[year, month, day].reject { |part| part == 0 }] }