Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail TwitterScaperTest #1632

Open
ullf opened this issue Oct 5, 2018 · 4 comments
Open

Fail TwitterScaperTest #1632

ullf opened this issue Oct 5, 2018 · 4 comments

Comments

@ullf
Copy link

ullf commented Oct 5, 2018

An error in TwitterScaperTest:
java.time.format.DateTimeParseException: Text 'Fri Jun 02 09:03:23 CEST 2017' could not be parsed at index 0

at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
at java.time.LocalDateTime.parse(LocalDateTime.java:492)
at org.loklak.harvester.TwitterScraperTest.dateFormatChange(TwitterScraperTest.java:198)
at org.loklak.harvester.TwitterScraperTest.testSimpleSearch(TwitterScraperTest.java:149)
@ullf
Copy link
Author

ullf commented Oct 5, 2018

The solution that I found:
DateTimeFormatter input_format = DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss zzz yyyy",new Locale("en"));

@callowidealist
Copy link

can i work on it ?

@ullf
Copy link
Author

ullf commented Oct 8, 2018

Of course, you can test it also.

@callowidealist
Copy link

Sure @ullf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants