Changeset 95:acd44dfec9c8 in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java
r91 r95 611 611 */ 612 612 if (annot.getCreated() == null) { 613 // set creation date613 // new - set creation date 614 614 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); 615 615 String ct = format.format(Calendar.getInstance().getTime()); 616 616 annot.setCreated(ct); 617 } else { 618 /* 619 * update date 620 */ 621 // not new - set last update date 622 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); 623 String ct = format.format(Calendar.getInstance().getTime()); 624 annot.setUpdated(ct); 617 625 } 618 626
Note: See TracChangeset
for help on using the changeset viewer.