Skip to content

Commit

Permalink
Less confusing naming for entry timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
mddub committed Oct 13, 2015
1 parent e27d87a commit 577da16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nightscout.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ function parsePumpTime(pumpTimeString, offset) {
return Date.parse(pumpTimeString + ' ' + offset);
}

function addTimeToEntry(utc, entry) {
entry['date'] = utc;
entry['dateString'] = new Date(utc).toISOString();
function addTimeToEntry(timestamp, entry) {
entry['date'] = timestamp;
entry['dateString'] = new Date(timestamp).toISOString();
return entry;
}

Expand Down

0 comments on commit 577da16

Please sign in to comment.