Changed lastWeek logic back to correct form, removed logic used for

testing.
pull/873/head
John Brooks 2014-12-14 00:41:29 -05:00 committed by Justin Richer
parent 9979bd0603
commit 321b3350f2
1 changed files with 1 additions and 2 deletions

View File

@ -191,8 +191,7 @@ public class OAuthConfirmationController {
// if the client is over a week old and has more than one registration, don't give such a big warning
// instead, tag as "Generally Recognized As Safe (gras)
Date lastWeek = new Date(System.currentTimeMillis() + (60 * 60 * 24 * 7 * 1000));
//Date lastWeek = new Date(System.currentTimeMillis() - (60 * 60 * 24 * 7 * 1000));
Date lastWeek = new Date(System.currentTimeMillis() - (60 * 60 * 24 * 7 * 1000));
if (count > 1 && client.getCreatedAt() != null && client.getCreatedAt().before(lastWeek)) {
model.put("gras", true);
} else {