Revision 5681
Added by berkley about 14 years ago
src/edu/ucsb/nceas/metacat/dataone/CrudService.java | ||
---|---|---|
698 | 698 |
} |
699 | 699 |
catch(java.text.ParseException pe) |
700 | 700 |
{ //try another legacy format |
701 |
DateFormat dateFormat2 = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.S'Z'"); |
|
702 |
dateFormat2.setTimeZone(TimeZone.getTimeZone("GMT-0")); |
|
703 |
dateSysMetadataModified = dateFormat2.parse(dateSMM); |
|
701 |
try |
|
702 |
{ |
|
703 |
DateFormat dateFormat2 = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.S'Z'"); |
|
704 |
dateFormat2.setTimeZone(TimeZone.getTimeZone("GMT-0")); |
|
705 |
dateSysMetadataModified = dateFormat2.parse(dateSMM); |
|
706 |
} |
|
707 |
catch(java.text.ParseException pe2) |
|
708 |
{ |
|
709 |
//try another legacy format |
|
710 |
DateFormat dateFormat3 = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss'Z'"); |
|
711 |
dateFormat3.setTimeZone(TimeZone.getTimeZone("GMT-0")); |
|
712 |
dateSysMetadataModified = dateFormat3.parse(dateSMM); |
|
713 |
} |
|
714 |
|
|
704 | 715 |
} |
705 | 716 |
} |
706 | 717 |
|
Also available in: Unified diff
fixed date problem