From f61c0425d10a0b7d3edfdbdaf4a47d0b195055bc Mon Sep 17 00:00:00 2001 From: OZ Date: Fri, 29 Jun 2018 16:21:39 +0200 Subject: [PATCH] s 14,15 are not dates --- Cargo.toml | 2 +- src/reader.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8814f8f..3a25794 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xlsx_reader" -version = "1.1.1" +version = "1.1.2" authors = ["OZ "] description = "Reader of XLSX files (only data)" license = "MIT" diff --git a/src/reader.rs b/src/reader.rs index 43bec50..f3001ca 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -147,7 +147,7 @@ pub fn get_parsed_xlsx(strings_map: HashMap, sheet_content: Strin tr.insert(i, val); found = true; } else { - if cell.attributes.contains_key("s") && (cell.attributes["s"][0] == "10" || cell.attributes["s"][0] == "14" || cell.attributes["s"][0] == "15") { + if cell.attributes.contains_key("s") && (cell.attributes["s"][0] == "10") { tr.insert(i, excel_date(&cell.attributes["v"][0], Some(1462.0))); found = true; } else {