From c29889070de75b210329ba56af384273e5031d46 Mon Sep 17 00:00:00 2001 From: IvanaE Date: Tue, 20 Nov 2018 12:28:51 -0500 Subject: [PATCH] month starts at 1 --- OlympusServices/.idea/misc.xml | 2 +- .../uottawa/olympus/olympusservices/FindServiceProvider.java | 1 + .../java/com/uottawa/olympus/olympusservices/MakeBooking.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OlympusServices/.idea/misc.xml b/OlympusServices/.idea/misc.xml index dc34569..cc51e58 100644 --- a/OlympusServices/.idea/misc.xml +++ b/OlympusServices/.idea/misc.xml @@ -25,7 +25,7 @@ - + diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/FindServiceProvider.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/FindServiceProvider.java index 4201a75..d29783f 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/FindServiceProvider.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/FindServiceProvider.java @@ -148,6 +148,7 @@ public class FindServiceProvider extends AppCompatActivity { public void onDateSet(DatePicker view, int year, int month, int day) { Calendar newDate = Calendar.getInstance(); newDate.set(year, month, day); + month++; String daystring; String monthstring; if((""+day).length()==1){ diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/MakeBooking.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/MakeBooking.java index ba73427..2873abe 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/MakeBooking.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/MakeBooking.java @@ -64,6 +64,7 @@ public class MakeBooking extends AppCompatActivity { public void onDateSet(DatePicker view, int year, int month, int day) { Calendar newDate = Calendar.getInstance(); newDate.set(year, month, day); + month++; String daystring; String monthstring; if((""+day).length()==1){