[Dspace-tech] UIUtil month -1

2009-06-22 Thread Jochen Lienhard
Hi, I have some metadata-sets, which only contains a year (no month and day). For sorting I put the date in like this 1930-00-00. In the short view I get now a funny date: 0-Uns-1930 I dont know the month 'Uns' ;-) So my question. Why did you programm month and date -1 and not 0 in

Re: [Dspace-tech] UIUtil month -1

2009-06-22 Thread Allen Lam
Hi, I am not the author of the related codes but I am interesting in reading source codes. According to my understanding, the reason behind the -1 design was defined in org.dspace.content.DCDate, where -1 means undefined value for year, month, day, hours, minutes and seconds. DCDate is based