compare result timestamp based on millis + utcoffset

This commit is contained in:
xvrl 2013-01-21 17:01:41 -08:00
parent 8f38b775ae
commit d7ea8e9afc
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class Result<T> implements Comparable<Result<T>>
Result result = (Result) o;
if (timestamp != null ? !timestamp.equals(result.timestamp) : result.timestamp != null) {
if (timestamp != null ? !(timestamp.isEqual(result.timestamp) && timestamp.getZone().getOffset(timestamp) == result.timestamp.getZone().getOffset(result.timestamp)) : result.timestamp != null) {
return false;
}
if (value != null ? !value.equals(result.value) : result.value != null) {