Skip to content

Commit

Permalink
Merge pull request #1 from christiangenco/add-dateSent
Browse files Browse the repository at this point in the history
add dateSent to list of date converted strings
  • Loading branch information
christiangenco committed Jan 21, 2015
2 parents f2fe8c7 + ff63910 commit 3ae01bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RestClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function processKeys(source) {
});

//Look for and convert date strings for specific keys
['startDate', 'endDate', 'dateCreated', 'dateUpdated', 'startTime', 'endTime'].forEach(function(dateKey) {
['startDate', 'endDate', 'dateCreated', 'dateUpdated', 'startTime', 'endTime', 'dateSent'].forEach(function(dateKey) {
if (source[dateKey]) {
source[dateKey] = new Date(source[dateKey]);
}
Expand Down

0 comments on commit 3ae01bb

Please sign in to comment.