forked from I2P_Developers/i2p.i2p
News: Set initial news to current date
This commit is contained in:
@ -186,7 +186,8 @@ public class NewsManager implements ClientApp {
|
|||||||
}
|
}
|
||||||
List<NewsEntry> rv = parseNews(out.toString(), true);
|
List<NewsEntry> rv = parseNews(out.toString(), true);
|
||||||
if (!rv.isEmpty()) {
|
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 {
|
} else {
|
||||||
if (_log.shouldWarn())
|
if (_log.shouldWarn())
|
||||||
_log.warn("failed to load " + file);
|
_log.warn("failed to load " + file);
|
||||||
|
Reference in New Issue
Block a user