[ 
http://jira.dspace.org/jira/browse/DS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10875#action_10875
 ] 

Larry Stone commented on DS-400:
--------------------------------

Confirmed, but only for timezones east of Greenwich :-) -- no, really.  In EST 
it's not a problem.
In CET the value "1989" shows up as "31-Dec-1988" (it's 1-Jan-1989 when the 
server is in EST).  

I think you're right, it's more fallout from the correction to DCDate and 
DS-393. It looks like the JSPUI is presenting the date metadata incorrectly.  
It _could_ use the DCDate class to just read the metadata value, e.g. in very 
rough pseudocode:

DCValue dc[] = item.getMetadata("dc.date.issued");
DCDate issued = new DCDate(dc[0].value);

println(.... issued.toString() ... 

This will show the date with teh same granularity (i.e. by year, by month, by 
day) that it has in the metadata value.

Alternately, the JSP code could use DCDate to decompose the value into 
components in local time  if it really has to impose a date granularity on a 
value that had year granularity.  E.g. dcdate.getMonth() instead of getMonthGMT.

I don't have time to go spelunking in the JSP code for this but if anyone can 
find the code i'll look at it and make a recommendation.

> 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
>
> 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

       

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to