} else if (TimeUtils.isYesterday(pushDate, timezone)) {\r
fuzzydate = tu.yesterday();\r
} else {\r
- // calculate a fuzzy time ago date\r
- cal.setTime(pushDate);\r
- cal.set(Calendar.HOUR_OF_DAY, 0);\r
- cal.set(Calendar.MINUTE, 0);\r
- cal.set(Calendar.SECOND, 0);\r
- cal.set(Calendar.MILLISECOND, 0);\r
- pushDate = cal.getTime();\r
fuzzydate = getTimeUtils().timeAgo(pushDate);\r
}\r
logItem.add(new Label("whenChanged", fuzzydate + ", " + df.format(pushDate)));\r
cal.set(Calendar.MINUTE, 0);\r
cal.set(Calendar.SECOND, 0);\r
cal.set(Calendar.MILLISECOND, 0);\r
- changeDate = cal.getTime();\r
- fuzzydate = getTimeUtils().timeAgo(changeDate);\r
+ Date date = cal.getTime();\r
+ fuzzydate = getTimeUtils().timeAgo(date);\r
}\r
changeItem.add(new Label("whenChanged", fuzzydate + ", " + df.format(changeDate)));\r
\r