Fixed human date display (YYYY vs yyyy).

This commit is contained in:
Christian P. MOMON 2021-05-23 02:02:15 +02:00
parent 0c51e9d257
commit 5ece10ea2a

View file

@ -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());