Bug 165687 - Data provider transformation "Date String"
Summary: Data provider transformation "Date String"
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Data-Provider
  Show dependency treegraph
 
Reported: 2025-03-11 11:37 UTC by Olivier Hallot
Modified: 2025-03-13 21:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2025-03-11 11:37:49 UTC
The Data Provider transformation "Date String" is undefined or is not effective and has no documentation.

Step to reproduce:
1) Open Data Provider and load a source with date contents
2) Select Date and Time Transformation
3) Select "Date String"
4) Click Apply

Actual Results (so far observed): nothing happens

Expected result: something happens in Preview area.

Source code: 
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dataprovider/datatransformation.cxx?#717

Help page:
https://help.libreoffice.org/master/en-US/text/scalc/01/data_provider.html?DbPAR=CALC
Comment 1 Rafael Lima 2025-03-11 20:19:53 UTC
From the code, DATE_STRING was supposed to make sure the column is formatted as a Date.

For some reason, it does not seem to work. My guess is that ScOutputData::LayoutStrings does not account for the SvNumFormatType::DATE format.
Comment 2 Olivier Hallot 2025-03-13 21:20:23 UTC
One interesting side effect:

Right-click on the column header of the preview table and it selects the corresponding column in the database range. Then you can format the cells with the context menu that opens in the preview table.