lib/mediainfo/tracks.rb in mediainfo-1.4.0 vs lib/mediainfo/tracks.rb in mediainfo-1.5.0
- old
+ new
@@ -107,10 +107,10 @@
elsif value.to_s == value.to_f.to_s then value.to_f
# Convert String with integer in it to Integer.
return value.to_f
elsif name.downcase.include?('date') && !value.match(/\d-/).nil?
# Dates
- return Time.parse(value)
+ return Time.parse(value.sub(/^UTC\s+(.*)$/, '\1 UTC'))
end
value
end