Skip to content

Commit

Permalink
Merge pull request #4 from lindseydiloreto/patch-1
Browse files Browse the repository at this point in the history
Fixes deprecation warnings
  • Loading branch information
jonasgeiler authored Apr 9, 2022
2 parents 809f3f7 + b198ef0 commit 3c0eee7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templates/age-verification/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<option disabled selected value="">{{ settings.yearPlaceholder|replace({'{age}': requiredAge}) }}</option>
{% endif %}

{% for year in now.year..1900 %}
{% for year in now|date('Y')..1900 %}
<option value="{{ year }}">{{ year }}</option>
{% endfor %}
</select>
Expand Down Expand Up @@ -82,7 +82,7 @@
<option disabled selected value="">{{ settings.yearPlaceholder|replace({'{age}': requiredAge}) }}</option>
{% endif %}

{% for year in now.year..1900 %}
{% for year in now|date('Y')..1900 %}
<option value="{{ year }}">{{ year }}</option>
{% endfor %}
</select>
Expand All @@ -94,7 +94,7 @@
<option disabled selected value="">{{ settings.yearPlaceholder|replace({'{age}': requiredAge}) }}</option>
{% endif %}

{% for year in now.year..1900 %}
{% for year in now|date('Y')..1900 %}
<option value="{{ year }}">{{ year }}</option>
{% endfor %}
</select>
Expand Down Expand Up @@ -203,4 +203,4 @@
}
})();
</script>
{% endblock %}
{% endblock %}

0 comments on commit 3c0eee7

Please sign in to comment.