[
http://jira.dspace.org/jira/browse/DS-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11335#action_11335
]
Robin Taylor commented on DS-497:
---------------------------------
Didnt mention that the class in question is DCDate. This is essentially a
wrapper class for a date stored as a java.util.date. That class stores dates as
milliseconds since 1970, therefore it is impossible for it to only represent a
year. I think it can be fixed by changing all the getter methods to check on
the level of granularity of the date and return -1 if the level of granularity
is coarser than the component requested.
> Date month and day get default values when user returns to describe form
> ------------------------------------------------------------------------
>
> Key: DS-497
> URL: http://jira.dspace.org/jira/browse/DS-497
> Project: DSpace 1.x
> Issue Type: Bug
> Components: JSPUI, XMLUI
> Affects Versions: 1.6.0
> Reporter: Gabriela Mircea
> Assignee: Robin Taylor
>
> When a user returns to the first describe form for a previously published
> item that has only the publication year filled out, the date month and day
> get default values of January 1st. The same thing happens when the item has
> to go through the workflow and the metadata editor visits the first describe
> page.
--
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
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel