Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-38083

Dates aren't sorted correctly in European time format (dd.mm.yyyy)

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary

      Dates are not sorted correctly when user is on European browser (such as Deutsch).

      Environment

      Tested in:

      • Confluence server 6.15.6

      Steps to Reproduce

      1. Make sure that browser is on English language
      2. Create a page with random dates in a table
      3. Save, and try to sort it
      4. Tables are sorted correctly
      5. Go to user profile > setting > edit > set language as Deutsch
      6. Go back to the page > try to sort the dates

      Expected Results

      Dates are sorted correctly

      Actual Results

      Dates are not sorted correctly. In fact, it's sorted in a random way. see f0S76Dx2jG.gif

      Notes

      This issue is different than CONF-34002 since CONF-34002 is an improvement request for dates to be able to be sorted.

      Date sorting feature doesn't sort plain text dates since plain text dates could be ambiguous to users with different system & profile locales.   

        1. f0S76Dx2jG.gif
          f0S76Dx2jG.gif
          743 kB
        2. image-2017-11-30-09-59-20-565.png
          image-2017-11-30-09-59-20-565.png
          8 kB
        3. macrosettings.png
          macrosettings.png
          65 kB
        4. sorterror1.png
          sorterror1.png
          20 kB
        5. sorterror2.png
          sorterror2.png
          25 kB

            [CONFSERVER-38083] Dates aren't sorted correctly in European time format (dd.mm.yyyy)

            Zac Xu added a comment - - edited

            Hi it1829750478 ,

            For table 1, empty cell sorting bug was known and fixed in 7.14.2, you could find more detail on ticket: https://jira.atlassian.com/browse/CONFSERVER-74697

            For table 2, the date sorting feature was implemented against consistent datetime attributes in semantic <time> tags like

            <time datetime="2022-02-17">

            Users could insert it by using datepicker in editor. Plain text is sorted alphabetically. We don't parse plain text dates because it's ambiguous to users with different system and profile locales settings.

            Cheers,

            Zac

             

            Zac Xu added a comment - - edited Hi it1829750478 , For table 1, empty cell sorting bug was known and fixed in 7.14.2, you could find more detail on ticket: https://jira.atlassian.com/browse/CONFSERVER-74697 For table 2, the date sorting feature was implemented against consistent datetime attributes in semantic <time> tags like <time datetime= "2022-02-17" > Users could insert it by using datepicker in editor. Plain text is sorted alphabetically. We don't parse plain text dates because it's ambiguous to users with different system and profile locales settings. Cheers, Zac  

            it_marcapo added a comment - - edited

            Hi Zac Xu,

            at the moment we are using confluence 7.14.1 and languagesettings on german.

            Table1: If we create tables and fill dates with the datepicker we cant sort any column from the table.

            Table2: If we fill in the date manual in the digitalformat "day.month.year" the sort function is completely wrong.

             

            Table1:

            <p class="auto-cursor-target"><br /></p>
            <table><colgroup><col /><col /></colgroup>
            <tbody>
            <tr>
            <th scope="col">date</th>
            <th scope="col">order</th></tr>
            <tr>
            <td>
            <div class="content-wrapper">
            <p><time datetime="2022-01-01" />&nbsp;</p></div></td>
            <td>1</td></tr>
            <tr>
            <td>
            <div class="content-wrapper">
            <p><time datetime="2022-01-31" />&nbsp;</p></div></td>
            <td>3</td></tr>
            <tr>
            <td>
            <div class="content-wrapper">
            <p><time datetime="2022-01-13" />&nbsp;</p></div></td>
            <td>2</td></tr>
            <tr>
            <td>
            <div class="content-wrapper">
            <p><time datetime="2022-02-03" />&nbsp;</p></div></td>
            <td>5</td></tr>
            <tr>
            <td>
            <div class="content-wrapper">
            <p><time datetime="2022-02-01" />&nbsp;</p></div></td>
            <td>4</td></tr>
            <tr>
            <td>
            <div class="content-wrapper">
            <p><time datetime="2022-03-10" />&nbsp;</p></div></td>
            <td>7</td></tr>
            <tr>
            <td>
            <div class="content-wrapper">
            <p><time datetime="2022-02-17" />&nbsp;</p></div></td>
            <td>6</td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr></tbody></table>
            <p class="auto-cursor-target"><br /></p> 

            Table2

            <p class="auto-cursor-target"><br /></p>
            <table><colgroup><col /><col /></colgroup>
            <tbody>
            <tr>
            <th scope="col">date</th>
            <th scope="col">order</th></tr>
            <tr>
            <td>01.01.2021</td>
            <td>1</td></tr>
            <tr>
            <td>31.01.2021</td>
            <td>3</td></tr>
            <tr>
            <td>02.02.2021</td>
            <td>4</td></tr>
            <tr>
            <td>27.03.2021</td>
            <td>6</td></tr>
            <tr>
            <td>09.02.2021</td>
            <td>5</td></tr>
            <tr>
            <td>08.01.2021</td>
            <td>2</td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr>
            <tr>
            <td><br /></td>
            <td><br /></td></tr></tbody></table>
            <p class="auto-cursor-target"><br /></p> 

             

            it_marcapo added a comment - - edited Hi Zac Xu, at the moment we are using confluence 7.14.1 and languagesettings on german. Table1: If we create tables and fill dates with the datepicker we cant sort any column from the table. Table2: If we fill in the date manual in the digitalformat "day.month.year" the sort function is completely wrong.   Table1: <p class= "auto-cursor-target" ><br /></p> <table><colgroup><col /><col /></colgroup> <tbody> <tr> <th scope= "col" >date</th> <th scope= "col" >order</th></tr> <tr> <td> <div class= "content-wrapper" > <p><time datetime= "2022-01-01" />&nbsp;</p></div></td> <td>1</td></tr> <tr> <td> <div class= "content-wrapper" > <p><time datetime= "2022-01-31" />&nbsp;</p></div></td> <td>3</td></tr> <tr> <td> <div class= "content-wrapper" > <p><time datetime= "2022-01-13" />&nbsp;</p></div></td> <td>2</td></tr> <tr> <td> <div class= "content-wrapper" > <p><time datetime= "2022-02-03" />&nbsp;</p></div></td> <td>5</td></tr> <tr> <td> <div class= "content-wrapper" > <p><time datetime= "2022-02-01" />&nbsp;</p></div></td> <td>4</td></tr> <tr> <td> <div class= "content-wrapper" > <p><time datetime= "2022-03-10" />&nbsp;</p></div></td> <td>7</td></tr> <tr> <td> <div class= "content-wrapper" > <p><time datetime= "2022-02-17" />&nbsp;</p></div></td> <td>6</td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr></tbody></table> <p class= "auto-cursor-target" ><br /></p> Table2 <p class= "auto-cursor-target" ><br /></p> <table><colgroup><col /><col /></colgroup> <tbody> <tr> <th scope= "col" >date</th> <th scope= "col" >order</th></tr> <tr> <td>01.01.2021</td> <td>1</td></tr> <tr> <td>31.01.2021</td> <td>3</td></tr> <tr> <td>02.02.2021</td> <td>4</td></tr> <tr> <td>27.03.2021</td> <td>6</td></tr> <tr> <td>09.02.2021</td> <td>5</td></tr> <tr> <td>08.01.2021</td> <td>2</td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr> <tr> <td><br /></td> <td><br /></td></tr></tbody></table> <p class= "auto-cursor-target" ><br /></p>  

            Zac Xu added a comment -

            Hi it1829750478 ,

            Your screenshots seems not uploaded. Could you please create a sample page and upload its storage format so that we could reproduce this issue in order to fix it.

            Cheers,

            Zac Xu added a comment - Hi it1829750478 , Your screenshots seems not uploaded. Could you please create a sample page and upload its storage format  so that we could reproduce this issue in order to fix it. Cheers,

            Zac Xu added a comment -

            Hi de8df2978224 

            Could you please create a sample page and upload its storage format so that we could reproduce this issue in order to fix it.

            Cheers,

            Zac

             

            Zac Xu added a comment - Hi de8df2978224   Could you please create a sample page and upload its storage format so that we could reproduce this issue in order to fix it. Cheers, Zac  

            Zac Xu added a comment -

            Hi 1807a2aba4e6 ,

            When you mentioned dynamic "page-report" , are you referring to "page properties report"?

            I tested page properties report on my side and cannot reproduce this issue.

            Could you please create a support request with more information like how we could reproduce this issue so we could investigate further. Thanks.

             

            Best regards,

            Zac

            Zac Xu added a comment - Hi 1807a2aba4e6 , When you mentioned dynamic "page-report" , are you referring to "page properties report"? I tested page properties report on my side and cannot reproduce this issue. Could you please create a support request with more information like how we could reproduce this issue so we could investigate further. Thanks.   Best regards, Zac

            Carsten Schäfer added a comment - - edited

            Confluence 7.15.0 on Windows Server

            Yep, weird, at some point I thought it was fixed as some tables DO sort correctly, but others....

            What seems to work are tables that are created statically in a Confluence page.

            Page-report tables seem to fail, at least I I quickly checked again. The code is more or less the same, e.g. like

            <span hd-id="0" hd-pid="97613588" hd-pv="51"><time datetime="2022-01-13" class="date-past handy-date-time"><input type="text" class="handy-date-input"><span class="handy-date-value">13 Jan 2022</span></time></span>
            

            A bit useless as I mostly use dynamic tables and need to sort by soon-expiry dates, etc.....very very annoying

            Carsten Schäfer added a comment - - edited Confluence 7.15.0 on Windows Server Yep, weird, at some point I thought it was fixed as some tables DO sort correctly, but others.... What seems to work are tables that are created statically in a Confluence page. Page-report tables seem to fail, at least I I quickly checked again. The code is more or less the same, e.g. like <span hd-id= "0" hd-pid= "97613588" hd-pv= "51" ><time datetime= "2022-01-13" class= "date-past handy-date-time" ><input type= "text" class= "handy-date-input" ><span class= "handy-date-value" >13 Jan 2022</span></time></span> A bit useless as I mostly use dynamic tables and need to sort by soon-expiry dates, etc.....very very annoying

            This is not fixed for us and we are running version 7.13.1

            Kristine Murphy added a comment - This is not fixed for us and we are running version 7.13.1

            it_marcapo added a comment - - edited

            Wont work for us on 7.14.1.

            Neither English (US) nor Deutsch, we cant sort anything. The sort function is not working for the whole table if we add dates with datepicker. Both columns arent sortable.

            Language: English (US)

             

            Language: Deutsch

             

             

             

             

            it_marcapo added a comment - - edited Wont work for us on 7.14.1. Neither English (US) nor Deutsch, we cant sort anything. The sort function is not working for the whole table if we add dates with datepicker. Both columns arent sortable. Language: English (US)   Language: Deutsch        

            Minh Tran added a comment - - edited

            A fix for this issue is available to Server and Data Center customers in Confluence 7.13.1
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Minh Tran added a comment - - edited A fix for this issue is available to Server and Data Center customers in Confluence 7.13.1 Upgrade now or check out the Release Notes to see what other issues are resolved.

            >At least they "managed" to put it to the "short" term backlog.

            Only for Confluence server, a soon-to-be EOL product... 🤦‍♂️

            Jonas De Kegel added a comment - >At least they "managed" to put it to the "short" term backlog. Only for Confluence server, a soon-to-be EOL product... 🤦‍♂️

              zxu2@atlassian.com Zac Xu
              1742255c744c Alexander Schätzle
              Affected customers:
              159 This affects my team
              Watchers:
              117 Start watching this issue

                Created:
                Updated:
                Resolved: