1

in the CP settings, timezone is set to UTC +1 Europe/Zurich when I try this code:

{% set currDay = now|date() %}
    {{ currDay|date('l d F Y') }}

it outputs "Mercredi, 16 janvier 2019", but we're still Tuesday 15th

Craft 3.0.37

1

Try

{% set currDay = now|date('M j, Y H:i:s') %}
{{ currDay }}

Applying the |date() filter to the now object when you set the variable currDay makes currDay a string. When you then try try to reapply |date() a second time, something funny must be happening..?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.