Fixed human date display (YYYY vs yyyy).
This commit is contained in:
parent
0c51e9d257
commit
5ece10ea2a
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ public class Crawler
|
||||||
// Build crawl data.
|
// Build crawl data.
|
||||||
PathProperties crawlSection = new PathPropertyList();
|
PathProperties crawlSection = new PathPropertyList();
|
||||||
crawlSection.put("crawl.crawler", "StatoolInfos");
|
crawlSection.put("crawl.crawler", "StatoolInfos");
|
||||||
crawlSection.put("crawl.datetime", LocalDateTime.now().format(DateTimeFormatter.ofPattern("YYYY-MM-dd'T'HH:mm:ss")));
|
crawlSection.put("crawl.datetime", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")));
|
||||||
crawlSection.put("crawl.url", url.toString());
|
crawlSection.put("crawl.url", url.toString());
|
||||||
crawlSection.put("crawl.file.size", FileUtils.sizeOf(downloadFile));
|
crawlSection.put("crawl.file.size", FileUtils.sizeOf(downloadFile));
|
||||||
crawlSection.put("crawl.file.datetime", StatoolInfosUtils.urlLastModified(url).toString());
|
crawlSection.put("crawl.file.datetime", StatoolInfosUtils.urlLastModified(url).toString());
|
||||||
|
|
Loading…
Reference in a new issue