Skip to content

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

Description

@GoogleCodeExporter
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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions