sc/source/core/data/dpcache.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4dc8ff5919adb540c2ffa0e2ea30f785fc003dc8
Author:     Karthik Godha <[email protected]>
AuthorDate: Wed Jan 28 20:31:27 2026 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Thu Jan 29 14:03:00 2026 +0100

    sc: Export TIME cell formats as DATE type in PivotTable
    
    In PivotCacheDefinition TIME cell formats are exported as Numerics,
    along side with `fieldGroup` element. `fieldGroup` can only be
    associated with DATE/TIME cells not Numerics.
    
    bug-document: forum-mso-de-38288.xls
    
    Change-Id: I677fedcd4d50ed5bea3aaf7a2a9d99d2ae0407e0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198319
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 709cd8777835..969bd5c01c4f 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -1072,7 +1072,8 @@ bool ScDPCache::IsDateDimension( tools::Long nDim ) const
 
     ScInterpreterContext& rContext = mrDoc.GetNonThreadedContext();
     SvNumFormatType eType = rContext.NFGetType(maFields[nDim]->mnNumFormat);
-    return (eType == SvNumFormatType::DATE) || (eType == 
SvNumFormatType::DATETIME);
+    return (eType == SvNumFormatType::DATE) || (eType == 
SvNumFormatType::DATETIME)
+           || (eType == SvNumFormatType::TIME);
 }
 
 tools::Long ScDPCache::GetDimMemberCount(tools::Long nDim) const

Reply via email to