<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 - =WEEKNUM(xxx;2) Returns Wrong Week Number for 2021"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=139548">139548</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>=WEEKNUM(xxx;2) Returns Wrong Week Number for 2021
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0.4.2 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>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mails.bugs.documentfoundation.org@gunter.ohrner.net
</td>
</tr></table>
<p>
<div>
<pre>Description:
If I don't significantly misread all documentation I could find, WEEKNUM does
not work as documented for the year 2021:
<a href="https://help.libreoffice.org/7.0/en-US/text/scalc/01/func_weeknum.html?&DbPAR=WRITER&System=UNIX">https://help.libreoffice.org/7.0/en-US/text/scalc/01/func_weeknum.html?&DbPAR=WRITER&System=UNIX</a>
System 2
<span class="quote">> The week containing the first Thursday of the year is the first week of the
> year, and is numbered week 1. That means that week number 1 of any year is
> the week that contains January 4th. ISO 8601 defines this system and that the
> week starts on Monday.</span >
However:
01.01.21 1 =KALENDERWOCHE(A1;2)
02.01.21 1 =KALENDERWOCHE(A2;2)
03.01.21 1 =KALENDERWOCHE(A3;2)
04.01.21 2 =KALENDERWOCHE(A4;2)
05.01.21 2 =KALENDERWOCHE(A5;2)
06.01.21 2 =KALENDERWOCHE(A6;2)
07.01.21 2 =KALENDERWOCHE(A7;2)
Steps to Reproduce:
1. Use the example data pasted to the description field
Actual Results:
The week containing the 4th of January is counted as "week 2".
Expected Results:
The week containing the 4th of January should be counted as "week 1". That's
what the documentation states, and also what my calendar says...
Reproducible: Always
User Profile Reset: No
Additional Info:
Reproducable in both
* 7.0.4.2 Linux 64 Bit desktop binary
* and LibreOffice 6.4 (Collabora CODE).</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>