When I am updating an record, there is one field that belongs to the class (birth date). This field it is a date Object (or datetime data type if I were using C#). When I save such record in the database, the record is updated with success, but, when I look for this record on the database(MySQL), this field is showing a wrong date value. Month and Year values are correct, but day value is showing a day before that I typed.
Is there some parameter that I need to configure to work with java.util.date class ? In my database table, I defined this field with the same type as I am using in my class. I am using eclipse to work with JSF and working with Java sdk 1.6.18.
When I put breakpoints in my code for debug, I noticed that the Date object is using Gregorian Calendar, but unfortunately it already comes with a wrong date value. I checked my datetime settings, and they are setup correctly. I am using UTC -03:00 (Brazil)