Skip to content

Commit

Permalink
Update DateClientParam.java
Browse files Browse the repository at this point in the history
method "second" has been using DAY precision.
  • Loading branch information
twilson650 committed Jan 26, 2015
1 parent b36932a commit 8eb659c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -112,14 +112,14 @@ public ICriterion<DateClientParam> now() {
@Override
public ICriterion<DateClientParam> second(Date theValue) {
DateTimeDt dt = new DateTimeDt(theValue);
dt.setPrecision(TemporalPrecisionEnum.DAY);
dt.setPrecision(TemporalPrecisionEnum.SECOND);
return new Criterion(myPrefix + dt.getValueAsString());
}

@Override
public ICriterion<DateClientParam> second(String theValue) {
DateTimeDt dt = new DateTimeDt(theValue);
dt.setPrecision(TemporalPrecisionEnum.DAY);
dt.setPrecision(TemporalPrecisionEnum.SECOND);
return new Criterion(myPrefix + dt.getValueAsString());
}

Expand Down

0 comments on commit 8eb659c

Please sign in to comment.