jsonkenl / xlsxir

Xlsx parser for the Elixir language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parsed TIMEVALUE cell showing one second too early

jfburdet opened this issue · comments

Hi,

Using xlsir on sample attached xlsx file, timevalue are parsed but showing one second too early :

iex(1)> Mix.install([
...(1)>   {:xlsxir, github: "jsonkenl/xlsxir"}
...(1)> ])
* Getting xlsxir (https://github.com/jsonkenl/xlsxir.git)
remote: Enumerating objects: 2261, done.        
[...]
iex(2)> {:ok, table_id} = Xlsxir.multi_extract("/home/jfburdet/Downloads/time_issue.xlsx", 0)
{:ok, #Reference<0.4013215777.4275175433.253817>}
iex(3)> table_id |> Xlsxir.get_map()
%{"A1" => "This should read 9h30mn00sec", "A2" => {9, 29, 59}}

Opening the file in excel shows correct time (9h30mn00s) ...

Did I miss something or is it an actual bug ?

time_issue.xlsx