]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/DateSelector.java
FIX: Off by one in date selector (how did this ever work??!)
[gigi.git] / src / org / cacert / gigi / output / DateSelector.java
index aadac045a6aabf8eff08630bad75f61c8804348c..20939e499363f6f15006491f25209b05d9fc43f8 100644 (file)
@@ -24,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);
     }