[ 
http://jira.dspace.org/jira/browse/DS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Larry Stone updated DS-400:
---------------------------

    Attachment: ds-400.patch.txt

Here's a patch that guts UIUtil.displayDate and moves the formatting logic into 
DCDate so it can take advantage of inside knowledge of the granularity of the 
date.  It can probably be made more efficient, but I was more concerned with 
getting it _correct_ first.  

I'd appreciate if some JSPUI experts can try this out, since the following 
classes and JSP had calls to displayDate(), so you'd have to know e.g. what 
calls DateTag.. 
dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/BrowseListTag.java
dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/DateTag.java
dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemListTag.java
dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java
dspace-jspui/dspace-jspui-webapp/src/main/webapp/submit/review-metadata.jsp

I've tested it east and west of GMT, anyway (can be simulated by setting the TZ 
environment variable before launching the JVM in Unix)..  You can also use 
dsrun org.dspace.content.DCDate to test the date parser, read the source of 
DCDate for instructions on using it.  It now shows the results of displayDate 
too.

Note that displayDate() was always truncating the month name to the first 3 
characters if it was longer than that; this might not be optimal in every 
language -- perhaps it's worth experimenting with 
DateFormatSymbols.getShortMonths() to get better results in localization.  

> Webui item browse (date, title or similar) reduces displayed issue date by 
> one day
> ----------------------------------------------------------------------------------
>
>                 Key: DS-400
>                 URL: http://jira.dspace.org/jira/browse/DS-400
>             Project: DSpace 1.x
>          Issue Type: Bug
>          Components: JSPUI
>    Affects Versions: 1.6.0
>            Reporter: Claudia Jürgen
>            Assignee: Larry Stone
>             Fix For: 1.6.0
>
>         Attachments: ds-400.patch.txt
>
>
> In the browse by item (date, title or similar) the displayed  date issued is 
> reduced by one day. 
> Might be related to the fix of DS-393.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to