HPlus: fixed bug setting current date
This commit is contained in:
parent
b92b1c08bf
commit
5222cf99a2
|
@ -211,7 +211,7 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
|
||||||
|
|
||||||
private HPlusSupport setCurrentDate(TransactionBuilder transaction) {
|
private HPlusSupport setCurrentDate(TransactionBuilder transaction) {
|
||||||
Calendar c = GregorianCalendar.getInstance();
|
Calendar c = GregorianCalendar.getInstance();
|
||||||
int year = c.get(Calendar.YEAR) - 1900;
|
int year = c.get(Calendar.YEAR);
|
||||||
int month = c.get(Calendar.MONTH);
|
int month = c.get(Calendar.MONTH);
|
||||||
int day = c.get(Calendar.DAY_OF_MONTH);
|
int day = c.get(Calendar.DAY_OF_MONTH);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue