X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Foutput%2FDateSelector.java;h=aadac045a6aabf8eff08630bad75f61c8804348c;hb=cd14b85c60f736a643842b421b11f41d8fca86c7;hp=0728eca3e73a7d69bbaf670e1779112fc344e603;hpb=4df25979d16944ddfcc58752cf8b6f7da30c4bc1;p=gigi.git diff --git a/src/org/cacert/gigi/output/DateSelector.java b/src/org/cacert/gigi/output/DateSelector.java index 0728eca3..aadac045 100644 --- a/src/org/cacert/gigi/output/DateSelector.java +++ b/src/org/cacert/gigi/output/DateSelector.java @@ -13,6 +13,7 @@ import javax.servlet.http.HttpServletRequest; import org.cacert.gigi.GigiApiException; import org.cacert.gigi.localisation.Language; +import org.cacert.gigi.output.template.Outputable; public class DateSelector implements Outputable { @@ -134,6 +135,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); }