Permalink
Browse files

Better English

  • Loading branch information...
1 parent 5e798b8 commit 37d377d6fd13b7b24ae7606621e9b8ca3855b9dc @maximethebault maximethebault committed Jan 7, 2014
Showing with 9 additions and 10 deletions.
  1. +9 −10 lib/parser.js
View
@@ -110,26 +110,25 @@ Parser.parseListEntry = function(line) {
mins = '0' + mins;
info.date = new Date(year + '-' + month + '-' + day + 'T'
+ hour + ':' + mins);
- // if the date is in the past but not older than 6 months ago, year
- // isn't displayed and doesn't have to be the current year
+ // If the date is in the past but no more than 6 months old, year
+ // isn't displayed and doesn't have to be the current year.
//
- // if the date is in the future (less than an hour from now), year
- // isn't displayed and doesn't have to be the current year (if it's
- // December 31st 23:30 for instance).
+ // If the date is in the future (less than an hour from now), year
+ // isn't displayed and doesn't have to be the current year.
// That second case is much more rare than the first and less annoying.
// It's impossible to fix without knowing about the server's timezone,
// so we just don't do anything about it.
//
- // if we're here with a date 28 hours from now in the future (1 hour +
- // maximum timezone offset which is 27 hours),
+ // If we're here with a time that is more than 28 hours into the
+ // future (1 hour + maximum timezone offset which is 27 hours),
// there is a problem : we should be in the second conditional block
if(info.date.getTime()-new Date().getTime() > 100800000)
info.date = new Date((year-1) + '-' + month + '-' + day + 'T'
+ hour + ':' + mins);
- // if we're here with a date older than 6 months in the past, there's
- // a problem as well
- // maybe local & remote servers aren't on the same timezone (with remote
+ // If we're here with a time that is more than 6 months old, there's
+ // a problem as well.
+ // Maybe local & remote servers aren't on the same timezone (with remote
// ahead of local)
// For instance, remote is in 2014 while local is still in 2013. In
// this case, a date like 01/01/13 02:23 could be detected instead of

0 comments on commit 37d377d

Please sign in to comment.