Skip to content
Browse files
fixing SimpleDateFormat pattern
  • Loading branch information
Romain Manni-Bucau committed Nov 30, 2015
1 parent 5a358ee commit a36d37bbbe49a67240e34096e40fbe2ce59e1098
Showing 1 changed file with 2 additions and 2 deletions.
@@ -27,13 +27,13 @@

@Command(name = "evict", description = "remove old data, uses embedded configuration (no JAXRS support yet)")
public class Eviction implements Runnable {
@Option(name = "-until", description = "date until when the eviction will occur (excluded), YYYYMMdd format", required = true)
@Option(name = "-until", description = "date until when the eviction will occur (excluded), YYYYMMDD format", required = true)
private String date;

public void run() {
try {
final Date date = new SimpleDateFormat("YYYYMMdd").parse(;
final Date date = new SimpleDateFormat("yyyyMMdd").parse(;
} catch (final ParseException e) {
throw new IllegalArgumentException(e);

0 comments on commit a36d37b

Please sign in to comment.