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

utc_from_string throws a ValueError for really old dates returned from Solr #30

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Index a date before 1000-01-01
2. do a search that returns that record

What is the expected output? What do you see instead?

I expect search results, though the code throws a ValueError exception.

In this case, the date string returned from Solr is: "209-01-01T08:00:00Z"

What version of the product are you using? On what operating system?

solrpy==0.9.5 on Debian Linux with Solr 3.4.0

Please provide any additional information below.

It looks like utc_from_string expects Solr to return a 4 digit year, though 
this apparently isn't always the case. Let me know if I can provide any more 
useful info.

Original issue reported on code.google.com by smcdon...@bepress.com on 4 Oct 2012 at 11:24

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

No branches or pull requests

1 participant