summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/utils/TimeUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/utils/TimeUtils.java')
-rw-r--r--src/com/gitblit/utils/TimeUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/gitblit/utils/TimeUtils.java b/src/com/gitblit/utils/TimeUtils.java
index 44f51a55..dcb60ab0 100644
--- a/src/com/gitblit/utils/TimeUtils.java
+++ b/src/com/gitblit/utils/TimeUtils.java
@@ -30,14 +30,14 @@ public class TimeUtils {
public static final long ONEYEAR = ONEDAY * 365L;
public static boolean isToday(Date date) {
- return (System.currentTimeMillis() - date.getTime()) < ONEDAY;
+ return (System.currentTimeMillis() - date.getTime()) < ONEDAY;
}
public static boolean isYesterday(Date date) {
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.add(Calendar.DATE, 1);
- return (System.currentTimeMillis() - cal.getTimeInMillis()) < ONEDAY;
+ return (System.currentTimeMillis() - cal.getTimeInMillis()) < ONEDAY;
}
public static String duration(int days) {