diff --git a/it/unisa/info13d/GestioneCatalogo/Catalogo.java b/it/unisa/info13d/GestioneCatalogo/Catalogo.java index 1811d40..ee24391 100644 --- a/it/unisa/info13d/GestioneCatalogo/Catalogo.java +++ b/it/unisa/info13d/GestioneCatalogo/Catalogo.java @@ -150,7 +150,7 @@ public class Catalogo{ String temp3[]; String marcatore2="/"; temp3 = data3.split(marcatore2); - GregorianCalendar dataScadCena = new GregorianCalendar((Integer.parseInt(temp3[2])),(Integer.parseInt(temp3[1])),(Integer.parseInt(temp3[0]))); + GregorianCalendar dataScadCena = new GregorianCalendar((Integer.parseInt(temp3[2])),(Integer.parseInt(temp3[1]))-1,(Integer.parseInt(temp3[0]))); /*DateFormat format2 = new SimpleDateFormat( "dd/MM/yyyy" ); date = format2.parse(inputData.nextLine()); GregorianCalendar dataScadCena = new GregorianCalendar();