cavb1205 / django-solr-search

Automatically exported from code.google.com/p/django-solr-search
0 stars 0 forks source link

get_date in xmlutils does not handle fractions of a second, as per ISO 8601 #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dates in MySQL databases can include fractional time parts, which are not
parsed correctly by the get_date function in xmlutils:

data=2009-04-10T12:29:51.000Z  
fmt= %Y-%m-%dT%H:%M:%SZ

My patch for this is v. ugly (split on '.', etc) - perhaps a more elegant
approach would be to use mktime?

Original issue reported on code.google.com by jmcke...@gmail.com on 22 Apr 2009 at 5:26

GoogleCodeExporter commented 9 years ago
I'd love to see that patch.

Original comment by sean.cre...@gmail.com on 3 Jun 2009 at 9:35