lib/rixml.rb in rixml-0.1.5 vs lib/rixml.rb in rixml-0.1.6
- old
+ new
@@ -25,10 +25,10 @@
current_status_info&.dig('statusType')&.downcase&.to_sym || :published
end
def publication_date
time_str = current_status_info&.dig('statusDateTime') || DateTime.now.to_s
- DateTime.strptime(time_str)
+ Time.parse(time_str).to_datetime.to_s
end
def authors
org = @attrs.dig('Research', 'Product', 'Source', 'Organization') || {}
if org.is_a? Array