From 5ece10ea2a34d15076743e25cdacbcd40fd10f87 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 23 May 2021 02:02:15 +0200 Subject: [PATCH] Fixed human date display (YYYY vs yyyy). --- src/fr/devinsy/statoolinfos/crawl/Crawler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/crawl/Crawler.java b/src/fr/devinsy/statoolinfos/crawl/Crawler.java index 4259797..0152dca 100644 --- a/src/fr/devinsy/statoolinfos/crawl/Crawler.java +++ b/src/fr/devinsy/statoolinfos/crawl/Crawler.java @@ -180,7 +180,7 @@ public class Crawler // Build crawl data. PathProperties crawlSection = new PathPropertyList(); 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.file.size", FileUtils.sizeOf(downloadFile)); crawlSection.put("crawl.file.datetime", StatoolInfosUtils.urlLastModified(url).toString());