From a444a791e0fd1955093d44e96a1c25e8c10cdaf5 Mon Sep 17 00:00:00 2001 From: ullf Date: Fri, 5 Oct 2018 23:27:35 +0200 Subject: [PATCH] Fix TwitterScraperTest --- test/org/loklak/harvester/TwitterScraperTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/org/loklak/harvester/TwitterScraperTest.java b/test/org/loklak/harvester/TwitterScraperTest.java index 18f8c66f8..e4c842cfa 100644 --- a/test/org/loklak/harvester/TwitterScraperTest.java +++ b/test/org/loklak/harvester/TwitterScraperTest.java @@ -9,6 +9,7 @@ import java.util.Map; import java.util.ArrayList; import java.util.Arrays; +import java.util.Locale; import java.time.ZonedDateTime; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; @@ -191,7 +192,7 @@ public String dateFormatChange(String time) { String k; DateTimeFormatter input_format = - DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss zzz yyyy"); + DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss zzz yyyy",new Locale("en")); DateTimeFormatter output_format = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");