Re: Browse DateIndex in portal catlog gives DateError: Invalid date

Daniel Jowett <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Organization Jowett Enterprises Ltd
Message-ID <[email protected]>
Hi David,

if I'm not mistaken, the fix you need is here:

https://github.com/zopefoundation/Products.ZCatalog/commit/2b36014f8c777ff238e81fcd84b2eeb650870e00#commitcomment-3655644

You will need to pin Products.ZCatalog >= 3.0 to pick that up.

(Maybe that should be in Plone 5 by default?)

Best regards,

Daniel

On 09/03/15 08:57, David Siedband
wrote:

I have a catalog query which is querying a DateIndex field, but the contents are coming back in what looks like the folder sort order, rather than the custom DateIndex.

When I try to Browse that index in the portal_catalog, I get this error.

Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module App.special_dtml, line 185, in _exec
Module DocumentTemplate.DT_Let, line 77, in render
Module DocumentTemplate.DT_In, line 606, in renderwb
Module DocumentTemplate.DT_Util, line 210, in eval
- __traceback_info__: DateTime
Module <string>, line 1, in <module>
Module DateTime.DateTime, line 440, in __init__
Module DateTime.DateTime, line 812, in _parse_args
DateError: Invalid date: (2011, 0, 2, 8, 0, 0, 'UTC’)

I tried a reindex, but the error persists. Any ideas what’s happening here and how to remedy?

Thanks,
--
David Siedband
http://zentraal.com

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users

--

Daniel Jowett

Jowett Enterprises Ltd

Tel: 0333 3 553 773

Mobile: 07870 667 126

[email protected]

www.jowettenterprises.com

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.