You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't know if it's related but I'm also having an issue where 08/04/2023 is parsed as 2023-04-08. Why and how could it be prevented?
Edit: found where the string is casted to a Date object with the mentioned format in the gem files (lib/roo/excelx/cell.rb). Since it's already casting it into a Date object I'm just reformatting it again to the desired format.
Steps to reproduce
xlsx = Roo::Excelx.new("./date_file.xlsx")
xlsx.each_row_streaming do |row|
puts row.inspect
end
Issue
#<Roo::Excelx::Cell::Date:0x00000001320b7ba0 @cell_value="2023-11-01", @cell_type=[:numeric_or_formula, "yyyy\-mm\-dd"], @coordinate=[7, 6], @value=Sat, 15 Jul 1905, @Format="yyyy\-mm\-dd", @Style=8>
2023-11-01 value incorrectly parsed to Sat, 15 Jul 1905.
System configuration
Roo version: (2.9.0)
Ruby version: 3.0.4
The text was updated successfully, but these errors were encountered: