Hi all,
I was using dateRange in page collection like such:
{% for post in page.collection.dateRange(d,d+1).order('date', 'desc') %}
this was working fine till May 31.
An exception has been thrown during the rendering of a template ("DateTime::__construct(): Failed to parse time string (20180532) at position 7 (2): Unexpected character").
I have tried
d|date_modify("+1 day")|date('Ymd')
which yields: 19700822 the start of the UNIX time.
and with
"d"|date_modify("+1 day")|date('Ymd') ---> quoted the d variable
and this only returns 20180531
with the results above I cannot iterate thorough the dates.
any pointers?
I have to present the site in a few days YIKES!
any insight appreciated !!!