]> WPIA git - gigi.git/commitdiff
FIX: Off by one in date selector (how did this ever work??!)
authorJanis Streib <janis@dogcraft.de>
Sat, 21 Mar 2015 22:03:03 +0000 (23:03 +0100)
committerJanis Streib <janis@dogcraft.de>
Sat, 21 Mar 2015 22:09:38 +0000 (23:09 +0100)
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);
     }