Merge pull request #503 from jpbarraca/hplus-fix-1

HPlus: fixed bug setting current date
here
Carsten Pfeiffer 2017-01-17 00:04:39 +01:00 committed by GitHub
commit e226a97c73
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
private HPlusSupport setCurrentDate(TransactionBuilder transaction) {
Calendar c = GregorianCalendar.getInstance();
int year = c.get(Calendar.YEAR) - 1900;
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day = c.get(Calendar.DAY_OF_MONTH);