<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Copy&Paste-Error in Date-Cells from XLSX to ODS"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=123407">123407</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Copy&Paste-Error in Date-Cells from XLSX to ODS
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.1.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>amersdorfer@argekultur.at
</td>
</tr></table>
<p>
<div>
<pre>Description:
When copying cells with a date from a XLSX-File, that is saved in an "old"
Excel format ("1904") to a new ODS-File via Copy&Paste, the date gets
automatically transformed by 4 years and 1 day. Eg. 27.12.2018 changes to
26.12.2014 in new ODS. Correct: 27.12.2018 should not change.
In the XLSX document under Tools - Options - LibreOffice Calc - Calculate, the
date is set automatically at "01.01.1904". I suppose because the XLSX is a
spreadsheet "in a foreign format". A standard ODS is set at "30.12.1899", so
copy & pasting should honor the difference.
Steps to Reproduce:
1. Copy cell with Date from XLSX-file (Strg-C)
2. Paste in empty ODS or new spreadsheet
Actual Results:
Date cell with content "22.1.2018" changes to "21.1.2014"
Expected Results:
Content of Date cell should not change after paste to ODS-spreadsheet
Reproducible: Always
User Profile Reset: No
Additional Info:
Clipboard contains "22.1.2018"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>