https://bugs.documentfoundation.org/show_bug.cgi?id=174520
Bug ID: 174520
Summary: Copy from a table/query result of Base and paste into
Calc parses dates and numbers incorrectly
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Base
Assignee: [email protected]
Reporter: [email protected]
Description:
When rows of a table or query result are copied in Base and pasted into Calc
with plain Paste, Calc gets only the text Base displays, not the values. Calc
parses that text again with its own settings, so:
- Dates depend on Calc's date acceptance patterns. Some become text, and
others are silently read with day and month swapped.
- Numbers keep only the decimals that are displayed (related bugĀ 112023).
- Numbers whose format uses a different decimal separator than Calc become
text (related bugĀ 134644).
Steps to Reproduce:
1. Tools > Options > Languages and Locales > General: set "Locale setting" to
English (USA) and "Date acceptance patterns" to M/D;D/M/Y. OK, then restart
LibreOffice.
2. File > New > Database, create a new embedded database (default settings),
and save it.
3. Tools > SQL, run:
CREATE TABLE "T" ("ID" INTEGER PRIMARY KEY, "D" DATE);
INSERT INTO "T" VALUES (1, '2022-09-24');
INSERT INTO "T" VALUES (2, '2022-11-03');
INSERT INTO "T" VALUES (3, '2022-11-16');
INSERT INTO "T" VALUES (4, '2022-12-06');
Close the dialog, then View > Refresh Tables.
4. Open table "T". Base shows the dates as 09/24/22, 11/03/22, 11/16/22 and
12/06/22.
5. Copy a row with Ctrl+C.
6. File > New > Spreadsheet, paste data in A1-A4. In B1 enter =MONTH(A1) and
fill it down to B4.
Actual Results:
#VALUE!
3
#VALUE!
6
Expected Results:
09/24/22 9
11/03/22 11
11/16/22 11
12/06/22 12
Reproducible: Always
User Profile Reset: No
Additional Info:
N/A
--
You are receiving this mail because:
You are the assignee for the bug.