eZ Community » Forums » eZ Publish 5 Platform » Dates in critera
expandshrink

Dates in critera

Dates in critera

Monday 07 September 2015 3:29:27 am - 1 reply

I use the following criteria,

new Criterion\Field(
                    'from_time',
                    Criterion\Operator::GTE,
                    $firstDayOfCalendar->getTimestamp()
                )

I have the issue that this works when using the legacy search backend, but when using solr it does not.  The date format is wrong.  With solr if I just pass the DateTime instance it works.  Should passing a date not alway work passing just the DateTime instead of having to use a different format based on the search backend?

Modified on Monday 07 September 2015 3:44:47 am by Douglas Hammond

Tuesday 08 September 2015 5:01:39 pm

Added issue to Jira

https://jira.ez.no/browse/EZP-24785

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from