rsanchez / dynamo

Makes Dynamic Parameters behave more like the Search module.
http://devot-ee.com/add-ons/dynamo/
10 stars 2 forks source link

Fatal error: Call to undefined method Localize::decode_date() #36

Closed vladilin closed 9 years ago

vladilin commented 9 years ago

Is there a way to make a date range.

I imagine I can use name="search:entry_date" to find all entries in a single day, but is there any way to set:

find entries from entry_date to entry_date?

Thanks in advance.

rsanchez commented 9 years ago

EE has native parameters for this: start_on and stop_before.

vladilin commented 9 years ago

Ah yes that makes sense. I didn't think if them as dynamic parameters.  Thank you

Vlad

-------- Original message --------
From: Rob Sanchez notifications@github.com
Date:11/04/2015 22:06 (GMT+07:00)
To: rsanchez/dynamo dynamo@noreply.github.com
Cc: vladilin vlad.ilin@gmail.com
Subject: Re: [dynamo] More of a inquiry than an issue. (#36)
EE has native parameters for this: start_on and stop_before. — Reply to this email directly or view it on GitHub.
vladilin commented 9 years ago

Hey Rob,

I tried this one, but get this error Fatal error: Call to undefined method Localize::decode_date() in /expressionengine/third_party/dynamo/mod.dynamo.php on line 157

Any advice?

vladilin commented 9 years ago

I fixed this by changing decode_date to format_date. Even though I read somewhere that “format” is “deprecated” and we should be using “decode_date” instead apparently that is not the case because when I changed that in my template it worked and I stopped getting that error.