Merge pull request #97 from twilson650/patch-2

Update DateClientParam.java
This commit is contained in:
James Agnew 2015-02-03 10:36:59 -05:00
commit 3249b0cb12
1 changed files with 2 additions and 2 deletions

View File

@ -112,14 +112,14 @@ public class DateClientParam implements IParam {
@Override @Override
public ICriterion<DateClientParam> second(Date theValue) { public ICriterion<DateClientParam> second(Date theValue) {
DateTimeDt dt = new DateTimeDt(theValue); DateTimeDt dt = new DateTimeDt(theValue);
dt.setPrecision(TemporalPrecisionEnum.DAY); dt.setPrecision(TemporalPrecisionEnum.SECOND);
return new Criterion(myPrefix + dt.getValueAsString()); return new Criterion(myPrefix + dt.getValueAsString());
} }
@Override @Override
public ICriterion<DateClientParam> second(String theValue) { public ICriterion<DateClientParam> second(String theValue) {
DateTimeDt dt = new DateTimeDt(theValue); DateTimeDt dt = new DateTimeDt(theValue);
dt.setPrecision(TemporalPrecisionEnum.DAY); dt.setPrecision(TemporalPrecisionEnum.SECOND);
return new Criterion(myPrefix + dt.getValueAsString()); return new Criterion(myPrefix + dt.getValueAsString());
} }