<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 - FORMATTING - Wrong date substraction in cell's operation"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132083">132083</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FORMATTING - Wrong date substraction in cell's operation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.2.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </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>jarko@sortsk.pl
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
E.g. "2020-04-13 12:18:00" - "2020-04-13 12:08:00" results in 9 (nine) minutes,
instead of 10. To get 10 we have to add one second:
"2020-04-13 12:18:01" - "2020-04-13 12:08:00" = 10

Other values are computed correctly, but not sure, if in ANY case.

Steps to Reproduce:
1. Set 'date' format for two cells
2. Fill in both: 2020-04-13 12:18:00 and 2020-04-13 12:08:00
3. Substract values in third cell, formatted as 'hour'

Actual Results:
9 (minutes)

Expected Results:
10 (minutes)


Reproducible: Always


User Profile Reset: No



Additional Info:
Wersja: 6.4.2.2 (x64)
Identyfikator kompilacji: 4e471d8c02c9c90f512f7f9ead8875b57fcb1ec3
Wątki CPU: 4; System operacyjny: Windows 6.1 Service Pack 1 Build 7601; Render
UI: domyślny; VCL: win; 
Ustawienia regionalne: pl-PL (pl_PL); Język UI: pl-PL
Calc: threaded</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>