public int activeTime;
public int maxHeartRate;
public int minHeartRate;
public int calories;
HPlusDataRecordDaySummary(byte[] data) {
<BUG>super(data);
year =  (data[10] & 0xFF) * 256 + (data[9] & 0xFF);</BUG>
month = data[11] & 0xFF;
day = data[12] & 0xFF;
if(year < 1900)

public int activeTime;
public int maxHeartRate;
public int minHeartRate;
public int calories;
HPlusDataRecordDaySummary(byte[] data) {
super(data, TYPE_DAY_SUMMARY);
year =  (data[10] & 0xFF) * 256 + (data[9] & 0xFF);
month = data[11] & 0xFF;
day = data[12] & 0xFF;
if(year < 1900)
