Bug 66618 - add longDate attribute to XML in directory listing
Summary: add longDate attribute to XML in directory listing
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.5.x-trunk
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-28 08:04 UTC by webmascon
Modified: 2023-05-31 15:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description webmascon 2023-05-28 08:04:08 UTC
In my application I need to list directory unsing descending date. Sorting can easily be done using xslt, but date attribute in XML is a string which is a fll representation of Java Date that starts from Day of the week. If XSLT sorting is applied the files sort order does not make any sense. 

To solve this problem I suggest to introduce a new attribute - longDate - which will be a long value of the Date, i.e. a number whichi will be perfect for sorting using XSLT.
Comment 1 webmascon 2023-05-28 08:04:33 UTC
this JIRA is created to raise a merge request with a patch
Comment 2 webmascon 2023-05-28 08:18:52 UTC
https://github.com/apache/tomcat/pull/622 pull request is created
Comment 3 Mark Thomas 2023-05-31 15:52:10 UTC
Thanks for the PR.

Fixed in:
- 11.0.x for 11.0.0-M7 onwards
- 10.1.x for 10.1.10 onwards
-  9.0.x for  9.0.76 onwards
-  8.5.x for  8.5.90 onwards