Skip to content

Commit

Permalink
Merge pull request #9 from thapar/patch-1
Browse files Browse the repository at this point in the history
All ambiguous date entries assume a future date
  • Loading branch information
webdigi committed Feb 17, 2015
2 parents 4a6ed5a + 0dc93de commit e9c249f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utils.gs
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ function getUserChildLabels(label) {
function parseDate(str) {
// return Date.parse(str);
if(dateConversionRequired(str)){
return convertToUserDate(Date.create(str));
return convertToUserDate(Date.future(str));
}

return Date.create(str);
return Date.future(str);
}

function parseDateFormat(str) {

// var date = Date.parse(str);
var date = Date.create(str);
var date = Date.future(str);
if (date.isValid() && date.isFuture()) {
if(dateConversionRequired(str)){
return convertToUserDate(date).full();
Expand Down

0 comments on commit e9c249f

Please sign in to comment.