Fixed bugs in initial 2.0 release.

This commit is contained in:
Jonathan Bernard 2013-10-11 16:37:11 -05:00
parent d720c6c645
commit 8cc257c24e
5 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#Fri, 11 Oct 2013 18:08:21 +0000
#Fri, 11 Oct 2013 16:03:41 -0500
name=timestamper-lib
version=2.0
version=2.1
lib.local=true
build.number=1

Binary file not shown.

Binary file not shown.

View File

@ -143,12 +143,12 @@ public class JDBLabsWebTimelineSource extends TimelineSource {
}
// Delete all entries that used to be present but are not any longer
deletedEntries.each { hash, entryId ->
deletedEntries.each { uuid, entryId ->
http.request(DELETE) {
uri.path = "entries/${username}/${timelineId}/${entryId}"
response.'404' = { resp -> serverEntryIds.remove(hash) }
response.success = { resp -> serverEntryIds.remove(hash) }
response.'404' = { resp -> serverEntryIds.remove(uuid) }
response.success = { resp -> serverEntryIds.remove(uuid) }
}
}

View File

@ -24,8 +24,8 @@ public class TimelineMarker implements Comparable<TimelineMarker> {
+ " is not permitted.");
// We truncate milliseconds.
this.timestamp = 1000 * (timestamp / 1000);
long seconds = 1000l * (timestamp.getTime() / 1000l);
this.timestamp = new Date(seconds);
this.mark = mark;
this.notes = notes;
this.uuid = uuid;