From: Felix Dörre Date: Thu, 4 Sep 2014 19:53:16 +0000 (+0200) Subject: UPD: Use strict date parsing. X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=c44bae50dc98daad60308eb81b7494f451975c13 UPD: Use strict date parsing. --- diff --git a/src/org/cacert/gigi/output/DateSelector.java b/src/org/cacert/gigi/output/DateSelector.java index 0728eca3..1aefa137 100644 --- a/src/org/cacert/gigi/output/DateSelector.java +++ b/src/org/cacert/gigi/output/DateSelector.java @@ -134,6 +134,7 @@ public class DateSelector implements Outputable { SimpleDateFormat local = fmt.get(); if (local == null) { local = new SimpleDateFormat("yyyy-MM-dd"); + local.setLenient(false); local.setTimeZone(TimeZone.getTimeZone("UTC")); fmt.set(local); }