From b56d3223ab079a10f7792faec9a6344bb7f15cd9 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 2 Sep 2016 14:12:05 +0200 Subject: [PATCH] fix passing date in careportal --- .../plugins/Careportal/Dialogs/NewNSTreatmentDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java index 9e5361841a..f3d30ff2a6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java @@ -301,7 +301,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick @Override public void onDateSet(DatePickerDialog view, int year, int monthOfYear, int dayOfMonth) { - eventTime.setYear(year); + eventTime.setYear(year - 1900); eventTime.setMonth(monthOfYear); eventTime.setDate(dayOfMonth); DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);