<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - DAY(), MONTH() and YEAR() functions don't handle Gregorian cut-over"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122158">bug 122158</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Severity</td>
           <td>normal
           </td>
           <td>enhancement
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - DAY(), MONTH() and YEAR() functions don't handle Gregorian cut-over"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122158#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - DAY(), MONTH() and YEAR() functions don't handle Gregorian cut-over"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122158">bug 122158</a>
              from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
        <pre>So this is actually not a bug. ODFF even states that "evaluators should use a
proleptic Gregorian system (continuing the years backwards as if the calendar
existed in those years)", see
<a href="http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#__RefHeading__1018898_715980110">http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#__RefHeading__1018898_715980110</a>

The problem is that the date serial number of a "date cell" usually is
formatted using a locale specific calendar, or even any specified calendar
available for a locale from the number formatter.

To solve this, we'd need

a) proleptic Gregorian (ISO 8601:2004) calendar date formats, e.g. with an
[~ISO] calendar modifier, for which "ISO" is not yet specified in ODF 19.341
number:calendar but seems possible,
<a href="http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1417544_253892949">http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1417544_253892949</a>

b) new spreadsheet functions that obtain the calendar used by the number format
of the referenced cell given as argument, or take a parameter to specify the
calendar; such as CALENDARDAY(), CALENDARMONTH() and CALENDARYEAR()</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>