X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Foutput%2FDateSelector.java;h=20939e499363f6f15006491f25209b05d9fc43f8;hb=ba0e2099f18fc222c05abb0e293c2eb1bb01f0e9;hp=1aefa13725dd80e2a5d1e3b3882cc664c3867cde;hpb=c44bae50dc98daad60308eb81b7494f451975c13;p=gigi.git diff --git a/src/org/cacert/gigi/output/DateSelector.java b/src/org/cacert/gigi/output/DateSelector.java index 1aefa137..20939e49 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 { @@ -23,7 +24,7 @@ public class DateSelector implements Outputable { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTF")); cal.setTime(date); this.day = cal.get(Calendar.DAY_OF_MONTH); - this.month = cal.get(Calendar.MONTH); + this.month = cal.get(Calendar.MONTH) + 1; this.year = cal.get(Calendar.YEAR); }