News: Set initial news to current date

This commit is contained in:
zzz
2016-02-22 16:19:42 +00:00
parent eb094ba0ef
commit 8e4b7e3847

View File

@ -186,7 +186,8 @@ public class NewsManager implements ClientApp {
}
List<NewsEntry> rv = parseNews(out.toString(), true);
if (!rv.isEmpty()) {
rv.get(0).updated = RFC3339Date.parse3339Date("2015-01-01");
//rv.get(0).updated = RFC3339Date.parse3339Date("2015-01-01");
rv.get(0).updated = _context.clock().now();
} else {
if (_log.shouldWarn())
_log.warn("failed to load " + file);