Fix Wikidata TODAY test

This commit is contained in:
Antonin Delpeuch 2020-01-06 13:30:10 +01:00
parent ae41348e00
commit d77d54803f

View File

@ -94,8 +94,8 @@ public class WbDateConstantTest extends WbExpressionTest<TimeValue> {
Calendar calendar = Calendar.getInstance();
TimeValue expectedDate = Datamodel.makeTimeValue(
calendar.get(Calendar.YEAR),
(byte)calendar.get(Calendar.MONTH),
(byte)(calendar.get(Calendar.DAY_OF_MONTH)+1),
(byte)(calendar.get(Calendar.MONTH)+1),
(byte)calendar.get(Calendar.DAY_OF_MONTH),
(byte)0, (byte)0, (byte)0, (byte)11, 0,0,0, TimeValue.CM_GREGORIAN_PRO);
evaluatesTo(expectedDate, new WbDateConstant("TODAY"));
}