<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 - Day function for creating date is off by one"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124231">124231</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Day function for creating date is off by one
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0.7.3 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (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>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rossollo@hotmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
I use a spreadsheet between windows and linux and it does some date
calculations. I noticed that some entries on the Excel side had a value of
3/21/2019 and on the linux side had a value of 3/20/2019. So when I checked
the two systems were converting a date using the function Date(Year(xxx),
Month(xxx), Day(21))
On excel the value was 03/21/2019 on Libreoffice in linux it was 03/20/2019.
This caused some values to be incorrectly calculated. Everything catches up by
the end of the month, but seemed wrong.
Steps to Reproduce:
1.Use the date function =DATE(
2. Generate a date from another date with Year, Month, Day
3. Or just enter =DAY(21) and you will get 20
Actual Results:
Entered =DAY(20) got 19 and entered =DAY(1) and got 31
Expected Results:
Expected 20 and expected 1
Reproducible: Always
User Profile Reset: No
Additional Info:</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>