diff --git a/apps/health/ChangeLog b/apps/health/ChangeLog index c8af41b9e..1edc42967 100644 --- a/apps/health/ChangeLog +++ b/apps/health/ChangeLog @@ -36,4 +36,5 @@ Added graphs for Temperature and Battery 0.32: If getting HRM every 3/10 minutes, don't turn it on if the Bangle is charging or hasn't moved and is face down/up 0.33: Ensure readAllRecordsSince always includes the current day - Speed improvements (put temporary functions in RAM where possible) \ No newline at end of file + Speed improvements (put temporary functions in RAM where possible) +0.34: Fix readFullDatabase (was skipping first month of data) \ No newline at end of file diff --git a/apps/health/lib.js b/apps/health/lib.js index b1845c70d..9a0f5148b 100644 --- a/apps/health/lib.js +++ b/apps/health/lib.js @@ -114,7 +114,7 @@ exports.readFullDatabase = function(cb) { require("Storage").list(/health-[0-9]+-[0-9]+.raw/).forEach(val => { var parts = val.split('-'); var y = parseInt(parts[1],10); - var mo = parseInt(parts[2].replace('.raw', ''),10); + var mo = parseInt(parts[2].replace('.raw', ''),10) - 1; exports.readAllRecords(new Date(y, mo, 1), (r) => {"ram"; r.date = new Date(y, mo, r.day, r.hr, r.min); cb(r); diff --git a/apps/health/metadata.json b/apps/health/metadata.json index 1c6743861..7e7432a8e 100644 --- a/apps/health/metadata.json +++ b/apps/health/metadata.json @@ -2,7 +2,7 @@ "id": "health", "name": "Health Tracking", "shortName": "Health", - "version": "0.33", + "version": "0.34", "description": "Logs health data and provides an app to view it", "icon": "app.png", "tags": "tool,system,health",