final long MS_PER_DAY = 24 * 60 * 60 * 1000;
now -= now % MS_PER_DAY;
now += MS_PER_DAY;
- SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd");
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
Date start = new Date(now);
@Test
public void testAssureFormFuture() throws IOException {
- SimpleDateFormat sdf = new SimpleDateFormat("YYYY");
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
int year = Integer.parseInt(sdf.format(new Date(System.currentTimeMillis()))) + 2;
String error = getError("date=" + year + "-01-01&location=testcase&certify=1&rules=1&CCAAgreed=1&assertion=1&points=10");
assertTrue(error, !error.startsWith("</div>"));
private static Thread runner;
- private static SimpleDateFormat sdf = new SimpleDateFormat("YYMMddHHmmss'Z'");
+ private static SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmss'Z'");
static {
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));