We’re upgrading a site and a chunk of code - intended to show opening hours of a shopping centre - does not work in the latest build. It however worked fine in 2.1.0. The code is basically saying “if this is not a bank holiday, show today’s opening times”
{exp:channel:entries channel="occasion" status="open" sort="desc" limit="1" orderby="date" dynamic="no"}
{if "{current_time format='%Y%m%d'}" == "{occasion_date format='%Y%m%d'}"}
Open Today {occasion_opening}
{if:elseif "{current_time format='%w'}" == "1" AND "{current_time format='%Y%m%d'}" != "{occasion_date format='%Y%m%d'}"}
Open Today 9am - 6pm
{if:elseif "{current_time format='%w'}" == "2" AND "{current_time format='%Y%m%d'}" != "{occasion_date format='%Y%m%d'}"}
Open Today 9am - 6pm
{if:elseif "{current_time format='%w'}" == "3" AND "{current_time format='%Y%m%d'}" != "{occasion_date format='%Y%m%d'}"}
Open Today 9am - 9pm
{if:elseif "{current_time format='%w'}" == "4" AND "{current_time format='%Y%m%d'}" != "{occasion_date format='%Y%m%d'}"}
Open Today 9am - 9pm
{if:elseif "{current_time format='%w'}" == "5" AND "{current_time format='%Y%m%d'}" != "{occasion_date format='%Y%m%d'}"}
Open Today 9am - 9pm
{if:elseif "{current_time format='%w'}" == "6" AND "{current_time format='%Y%m%d'}" != "{occasion_date format='%Y%m%d'}"}
Open Today 9am - 6pm
{if:elseif "{current_time format='%w'}" == "7" AND "{current_time format='%Y%m%d'}" != "{occasion_date format='%Y%m%d'}"}
Open Today 12pm - 6pm
{/if}
{/exp:channel:entries}Has there been a change in syntax with this new version?