From 1f446e0aefd61898e741f7ed999fcaf6f0488951 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 24 Jul 2023 12:00:17 +0000 Subject: undo last change due to broken test git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911233 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/ss/format/CellElapsedFormatter.java | 2 +- test-data/spreadsheet/ElapsedFormatTests.xlsx | Bin 15183 -> 36062 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ss/format/CellElapsedFormatter.java b/poi/src/main/java/org/apache/poi/ss/format/CellElapsedFormatter.java index 93fc537d12..43069d2eab 100644 --- a/poi/src/main/java/org/apache/poi/ss/format/CellElapsedFormatter.java +++ b/poi/src/main/java/org/apache/poi/ss/format/CellElapsedFormatter.java @@ -59,7 +59,7 @@ public class CellElapsedFormatter extends CellFormatter { val = elapsed / factor; else val = elapsed / factor % modBy; - if (type == '0' || type == 's') + if (type == '0') return Math.round(val); else return (long) val; diff --git a/test-data/spreadsheet/ElapsedFormatTests.xlsx b/test-data/spreadsheet/ElapsedFormatTests.xlsx index eacc071a41..95a093e8d4 100644 Binary files a/test-data/spreadsheet/ElapsedFormatTests.xlsx and b/test-data/spreadsheet/ElapsedFormatTests.xlsx differ -- cgit v1.2.3