datetimepicker
datetimepicker copied to clipboard
onDateSet returns 1 month earlier
When the method gets called the day and year params are fine but month is always 1 less than what I chose. e.g., I choose August and get 7 in onDateSet for the month parameter...
Currently I solved it with a simple and ugly month++;, but I was wondering if this is a bug or am I missing something here...?
The months are in the range 0-11 for compatibility with Calendar. See also http://developer.android.com/reference/android/app/DatePickerDialog.OnDateSetListener.html
:v ty